[
https://issues.apache.org/jira/browse/HDDS-5937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jyotinder Singh updated HDDS-5937:
----------------------------------
Description:
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)
Reproduce:
{quote}{color:#172b4d}{{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"}}
{{ }]}}{color}{{{color:#172b4d}bash-4.2$ ozone sh bucket info
/vol1/buck1{color}}}
{{{color:#172b4d} {{color}}}
{{{color:#172b4d} "metadata" : \{ },{color}}}
{{{color:#172b4d} "volumeName" : "vol1",{color}}}
{{{color:#172b4d} "name" : "buck1",{color}}}
{{{color:#172b4d} "storageType" : "DISK",{color}}}
{{{color:#172b4d} "versioning" : false,{color}}}
{{{color:#172b4d} "usedBytes" : 0,{color}}}
{{{color:#172b4d} "usedNamespace" : 0,{color}}}
{{{color:#172b4d} "creationTime" : "2021-11-02T05:55:35.311Z",{color}}}
{{{color:#172b4d} "modificationTime" : "2021-11-02T05:55:35.311Z",{color}}}
{{{color:#172b4d} "quotaInBytes" : -1,{color}}}
{{{color:#172b4d} "quotaInNamespace" : -1,{color}}}
{{{color:#172b4d} "bucketLayout" : "FILE_SYSTEM_OPTIMIZED"{color}}}
{{{color:#172b4d} }{color}}}
{{ }}
{quote}
was:
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)
Reproduce:
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"
}
> Inaccurate bucket info returned from bucket list command in Shell
> -----------------------------------------------------------------
>
> Key: HDDS-5937
> URL: https://issues.apache.org/jira/browse/HDDS-5937
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Jyotinder Singh
> Assignee: Jyotinder Singh
> Priority: Major
>
> 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)
> Reproduce:
> {quote}{color:#172b4d}{{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"}}
> {{ }]}}{color}{{{color:#172b4d}bash-4.2$ ozone sh bucket info
> /vol1/buck1{color}}}
> {{{color:#172b4d} {{color}}}
> {{{color:#172b4d} "metadata" : \{ },{color}}}
> {{{color:#172b4d} "volumeName" : "vol1",{color}}}
> {{{color:#172b4d} "name" : "buck1",{color}}}
> {{{color:#172b4d} "storageType" : "DISK",{color}}}
> {{{color:#172b4d} "versioning" : false,{color}}}
> {{{color:#172b4d} "usedBytes" : 0,{color}}}
> {{{color:#172b4d} "usedNamespace" : 0,{color}}}
> {{{color:#172b4d} "creationTime" : "2021-11-02T05:55:35.311Z",{color}}}
> {{{color:#172b4d} "modificationTime" : "2021-11-02T05:55:35.311Z",{color}}}
> {{{color:#172b4d} "quotaInBytes" : -1,{color}}}
> {{{color:#172b4d} "quotaInNamespace" : -1,{color}}}
> {{{color:#172b4d} "bucketLayout" : "FILE_SYSTEM_OPTIMIZED"{color}}}
> {{{color:#172b4d} }{color}}}
> {{ }}
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]