JyotinderSingh opened a new pull request #2832:
URL: https://github.com/apache/ozone/pull/2832
…n Shell
## What changes were proposed in this pull request?
There is a bug in the info being displayed from the Ozone Shell regarding
the bucket layouts. The information displayed is inconsistent with the actual
underlying behaviour.
The bucketLayout is being listed as LEGACY when you use the list command
(which is incorrect) and is being shown as FILE_SYSTEM_OPTIMIZED when using the
info command (which is the correct value)
```
bash-4.2$ ozone sh volume create /vol1
bash-4.2$ ozone sh bucket create /vol1/buck1 --type=FILE_SYSTEM_OPTIMIZED
bash-4.2$ ozone sh bucket list /vol1/
[
{ "metadata" : { }
,
"volumeName" : "vol1",
"name" : "buck1",
"storageType" : "DISK",
"versioning" : false,
"usedBytes" : 0,
"usedNamespace" : 0,
"creationTime" : "2021-11-02T05:55:35.311Z",
"modificationTime" : "2021-11-02T05:55:35.311Z",
"quotaInBytes" : -1,
"quotaInNamespace" : -1,
"bucketLayout" : "LEGACY"
}]
bash-4.2$ ozone sh bucket info /vol1/buck1
{ "metadata" : { }
,
"volumeName" : "vol1",
"name" : "buck1",
"storageType" : "DISK",
"versioning" : false,
"usedBytes" : 0,
"usedNamespace" : 0,
"creationTime" : "2021-11-02T05:55:35.311Z",
"modificationTime" : "2021-11-02T05:55:35.311Z",
"quotaInBytes" : -1,
"quotaInNamespace" : -1,
"bucketLayout" : "FILE_SYSTEM_OPTIMIZED"
}
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5937
## How was this patch tested?
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise,
remove this)
--
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]