xichen01 opened a new pull request, #3969:
URL: https://github.com/apache/ozone/pull/3969

   ## What changes were proposed in this pull request?
   Fix `Ozone` fs `mkdir` does not update bucket's `usedNamespace`
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-7497
   
   ## How was this patch tested?
   ```java
   "usedNamespace" can be updated when `mkdir`
   [root@Linux /root/ozone]% ozone sh bucket info s3v/bucket1
   {
     "metadata" : { },
     "volumeName" : "s3v",
     "name" : "bucket1",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : 1,
     "creationTime" : "2022-11-16T11:17:26.512Z",
     "modificationTime" : "2022-11-16T11:17:26.512Z",
     "quotaInBytes" : -1,
     "quotaInNamespace" : -1,
     "bucketLayout" : "OBJECT_STORE",
     "owner" : "root"
   }
   
   [root@Linux /root/ozone]% ozone sh bucket create s3v/bucket2 -t 
FILE_SYSTEM_OPTIMIZED
   [root@Linux /root/ozone]% ozone fs -mkdir ofs://localhost/s3v/bucket2/dir1
   [root@Linux /root/ozone]% ozone sh bucket info s3v/bucket2
   {
     "metadata" : { },
     "volumeName" : "s3v",
     "name" : "bucket2",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : 1,
     "creationTime" : "2022-11-16T11:18:08.748Z",
     "modificationTime" : "2022-11-16T11:18:08.748Z",
     "quotaInBytes" : -1,
     "quotaInNamespace" : -1,
     "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
     "owner" : "root"
   }
   [root@Linux /root/ozone]%
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to