Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5672 Support protocol aware buckets within a single OM
  3. HDDS-5937

Inaccurate bucket info returned from bucket list command in Shell

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None

    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:

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

      Attachments

        Issue Links

          Activity

            People

              jyotindersingh Jyotinder Singh
              jyotindersingh Jyotinder Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: