You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/12/12 05:15:57 UTC

[GitHub] [ozone] sumitagrawl commented on pull request #4021: HDDS-7565. FSO purge directory for old bucket can update quota for new bucket

sumitagrawl commented on PR #4021:
URL: https://github.com/apache/ozone/pull/4021#issuecomment-1345895251

   @neils-dev Need to observe quota update in bucket info for changes, I have run above and then captured bucket info with quota,
   
   1. bucket info showing usedNamesapce "1000"
   
   ```
   sumitagrawal@sumitagrawal-MBP16 bin % ./ozone sh bucket info /vol1/bucket1                           
   2022-12-12 10:35:13,513 WARN  util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(60)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
   {
     "metadata" : { },
     "volumeName" : "vol1",
     "name" : "bucket1",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : 1000,
     "creationTime" : "2022-12-12T04:58:03.668Z",
     "modificationTime" : "2022-12-12T05:04:20.651Z",
     "quotaInBytes" : 10737418240,
     "quotaInNamespace" : -1,
     "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
     "link" : false,
     "replicationConfig" : {
       "replicationFactor" : "ONE",
       "requiredNodes" : 1,
       "replicationType" : "RATIS"
     }
   }
   
   ```
   
   2. remove bucket recursive and recreate a bucket and check used namespace (its "0")
   
   ```
   sumitagrawal@sumitagrawal-MBP16 bin % ./ozone fs -rm -r -skipTrash /vol1/bucket1
   2022-12-12 10:35:42,135 WARN  util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(60)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
   Deleted /vol1/bucket1
   
   sumitagrawal@sumitagrawal-MBP16 bin % ./ozone sh bucket create --layout FILE_SYSTEM_OPTIMIZED /vol1/bucket1
   2022-12-12 10:35:53,211 WARN  util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(60)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
   2022-12-12 10:35:53,827 INFO  rpc.RpcClient (RpcClient.java:createBucket(691)) - Creating Bucket: vol1/bucket1, with bucket layout FILE_SYSTEM_OPTIMIZED, sumitagrawal as owner, Versioning false, Storage Type set to DISK and Encryption set to false 
   sumitagrawal@sumitagrawal-MBP16 bin % ./ozone sh bucket info /vol1/bucket1                           
   2022-12-12 10:35:59,880 WARN  util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(60)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
   {
     "metadata" : { },
     "volumeName" : "vol1",
     "name" : "bucket1",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : 0,
     "creationTime" : "2022-12-12T05:05:53.838Z",
     "modificationTime" : "2022-12-12T05:05:53.838Z",
     "quotaInBytes" : -1,
     "quotaInNamespace" : -1,
     "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
     "owner" : "sumitagrawal",
     "link" : false
   }
   ```
   
   3. After some time, its observed namespace is changed to "-1000" which is after purge of directory is completed. This should not happen for the newly created bucket.
   
   ```
   sumitagrawal@sumitagrawal-MBP16 bin % ./ozone sh bucket info /vol1/bucket1
   2022-12-12 10:38:01,114 WARN  util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(60)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
   {
     "metadata" : { },
     "volumeName" : "vol1",
     "name" : "bucket1",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : -1000,
     "creationTime" : "2022-12-12T05:05:53.838Z",
     "modificationTime" : "2022-12-12T05:05:53.838Z",
     "quotaInBytes" : -1,
     "quotaInNamespace" : -1,
     "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
     "owner" : "sumitagrawal",
     "link" : false
   }
   sumitagrawal@sumitagrawal-MBP16 bin % 
   ```
   


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org