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

Add LEGACY to AllowedBucketLayouts in CreateBucketHandler

    XMLWordPrintableJSON

Details

    Description

      This task is to add LEGACY to AllowedBucketLayouts in the CreateBucketHandler class.

      CreateBucketHandler.java#L65

      enum AllowedBucketLayouts {
          FILE_SYSTEM_OPTIMIZED("FILE_SYSTEM_OPTIMIZED"),
          OBJECT_STORE("OBJECT_STORE"),
          LEGACY("LEGACY")
      

      While executing the ozone sh bucket create command and passing an INVALID bucket layout, we currently get the following error message:

      Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, DEFAULT, ] (case-sensitive) but was 'INVALID'
      

      After the changes, this would be modified to:

      Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, LEGACY] (case-sensitive) but was 'INVALID'
      

      Similarly, ozone sh bucket create --help gives the following description for -l, --layout:

      -l, --layout=<allowedBucketLayout>
                                 Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
                                 OBJECT_STORE,
      

      After the changes, this would be modified to:

      -l, --layout=<allowedBucketLayout>
                                 Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
                                 OBJECT_STORE, LEGACY
      

      Attachments

        Issue Links

          Activity

            People

              tanvipenumudy Tanvi Penumudy
              tanvipenumudy Tanvi Penumudy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: