[ 
https://issues.apache.org/jira/browse/HDDS-6879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-6879:
---------------------------------
    Labels: pull-request-available  (was: )

> Bucket layout as null on default layout type
> --------------------------------------------
>
>                 Key: HDDS-6879
>                 URL: https://issues.apache.org/jira/browse/HDDS-6879
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Client
>    Affects Versions: 1.3.0
>            Reporter: Soumitra Sulav
>            Assignee: Tanvi Penumudy
>            Priority: Major
>              Labels: pull-request-available
>
> As per a recent change to add Bucket Layout information while creating 
> bucket, the information is displayed as expected when we pass a parameter for 
> --layout but is displayed as null when we don't pass any.
> It should rather print the default layout type and not rely on user params.
> {code:java}
> root@st-ozone-sq1qpy-p9xm2:/ansible# /opt/cloudera/parcels/CDH/bin/ozone sh 
> bucket create o3://ozone1/vol-1/buck-1
> 2022-06-13 17:37:30,582 [main] INFO  rpc.RpcClient 
> (RpcClient.java:createBucket(666))       - Creating Bucket: vol-1/buck-1, 
> with the Bucket Layout null, hrt_qa as owner, Versioning false, Storage Type 
> set to DISK and Encryption set to false
> 22/06/13 17:37:30 INFO rpc.RpcClient: Creating Bucket: vol-1/buck-1, with the 
> Bucket Layout null, hrt_qa as owner, Versioning false, Storage Type set to 
> DISK and Encryption set to false
> root@st-ozone-sq1qpy-p9xm2:/ansible# /opt/cloudera/parcels/CDH/bin/ozone sh 
> bucket info o3://ozone1/vol-1/buck-1
> {
>   "metadata" : { },
>   "volumeName" : "vol-1",
>   "name" : "buck-1",
>   "storageType" : "DISK",
>   "versioning" : false,
>   "usedBytes" : 0,
>   "usedNamespace" : 0,
>   "creationTime" : "2022-06-13T17:37:30.596Z",
>   "modificationTime" : "2022-06-13T17:37:30.596Z",
>   "quotaInBytes" : -1,
>   "quotaInNamespace" : -1,
>   "bucketLayout" : "LEGACY",
>   "owner" : "hrt_qa",
>   "link" : false
> }
> root@st-ozone-sq1qpy-p9xm2:/ansible# /opt/cloudera/parcels/CDH/bin/ozone sh 
> bucket create o3://ozone1/vol-1/buck-2 --layout OBJECT_STORE
> 2022-06-13 17:42:28,032 [main] INFO  rpc.RpcClient 
> (RpcClient.java:createBucket(666))       - Creating Bucket: vol-1/buck-2, 
> with the Bucket Layout OBJECT_STORE, hrt_qa as owner, Versioning false, 
> Storage Type set to DISK and Encryption set to false
> 22/06/13 17:42:28 INFO rpc.RpcClient: Creating Bucket: vol-1/buck-2, with the 
> Bucket Layout OBJECT_STORE, hrt_qa as owner, Versioning false, Storage Type 
> set to DISK and Encryption set to false
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to