sodonnel opened a new pull request #3025:
URL: https://github.com/apache/ozone/pull/3025


   ## What changes were proposed in this pull request?
   
   After creating a bucket using the shell:
   
   ozone sh bucket create /vol1/testec -t EC -r rs-3-2-1024k 
   
   And then listing the bucket info, the EC Replication details are not 
reflected in the output:
   
   ```
   {
     "metadata" : { },
     "volumeName" : "vol1",
     "name" : "testec",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : 0,
     "creationTime" : "2022-01-27T17:29:54.289Z",
     "modificationTime" : "2022-01-27T17:29:54.289Z",
     "quotaInBytes" : -1,
     "quotaInNamespace" : -1,
     "bucketLayout" : "OBJECT_STORE",
     "owner" : "hadoop",
     "replicationConfig" : {
       "replicationFactor" : "THREE",
       "requiredNodes" : 3,
       "replicationType" : "RATIS"
     },
     "link" : false
   } 
   ```
   
   The issue is caused by a missing parameter into the new BucketObject from 
getBucketDetails vs ListBuckets. After this change the CLI works correctly:
   
   ```
   bash-4.2$ ozone sh volume create /vol1
   bash-4.2$ ozone sh bucket create -r rs-3-2-1024k -t EC /vol1/bucket1
   bash-4.2$ ozone sh bucket list /vol1
   [ {
     "metadata" : { },
     "volumeName" : "vol1",
     "name" : "bucket1",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : 0,
     "creationTime" : "2022-01-27T22:09:21.194Z",
     "modificationTime" : "2022-01-27T22:09:21.194Z",
     "quotaInBytes" : -1,
     "quotaInNamespace" : -1,
     "bucketLayout" : "OBJECT_STORE",
     "owner" : "hadoop",
     "replicationConfig" : {
       "data" : 3,
       "parity" : 2,
       "ecChunkSize" : 1048576,
       "codec" : "RS",
       "requiredNodes" : 5,
       "replicationType" : "EC"
     },
     "link" : false
   } ]
   
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6233
   
   ## How was this patch tested?
   
   Manually via docker compose, but a acceptance test will be added via 
HDDS-6231
   


-- 
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