Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
This task is to add LEGACY to AllowedBucketLayouts in the CreateBucketHandler class.
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
- links to