HDDS-6819. Add LEGACY to AllowedBucketLayouts in CreateBucketHandler#3473
Merged
JyotinderSingh merged 2 commits intoapache:masterfrom Jun 2, 2022
Merged
HDDS-6819. Add LEGACY to AllowedBucketLayouts in CreateBucketHandler#3473JyotinderSingh merged 2 commits intoapache:masterfrom
JyotinderSingh merged 2 commits intoapache:masterfrom
Conversation
rakeshadr
approved these changes
Jun 2, 2022
Contributor
rakeshadr
left a comment
There was a problem hiding this comment.
+1 LGTM, thanks @tanvipenumudy for the contribution.
Thanks a lot @JyotinderSingh for the offline discussions to understand the ${COMPLETION-CANDIDATES} types.
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java
Outdated
Show resolved
Hide resolved
Contributor
|
Thanks for the contribution @tanvipenumudy! The overall patch looks good to me, added a minor comment. |
Contributor
|
Looks like the CI is having some issues right now, will retrigger these tests in a little bit. |
JyotinderSingh
approved these changes
Jun 2, 2022
Contributor
|
Thank you @tanvipenumudy for the patch, and @rakeshadr for the reviews and offline discussion. Merging this PR. |
errose28
added a commit
to errose28/ozone
that referenced
this pull request
Jun 7, 2022
* master: (87 commits) HDDS-6686. Do Leadship check before SASL token verification. (apache#3382) HDDS-4364: [FSO]List FileStatus : startKey can be a non-existed path (apache#3481) HDDS-6091. Add file checksum to OmKeyInfo (apache#3201) HDDS-6706. Exposing Volume Information Metrics to the DataNode UI (apache#3478) HDDS-6759: Add listblock API in MockDatanodeStorage (apache#3452) HDDS-5821 Container cache management for closing RockDB (apache#3426) HDDS-6683. Refactor OM server bucket layout configuration usage (apache#3477) HDDS-6824. Revert changes made in proto.lock by HDDS-6768. (apache#3480) HDDS-6811. Bucket create message with layout type (apache#3479) HDDS-6810. Add a optional flag to trigger listStatus as part of listKeys for FSO buckets. (apache#3461) HDDS-6828. Revert RockDB version pending leak fixes (apache#3475) HDDS-6764: EC: DN ability to create RECOVERING containers for EC reconstruction. (apache#3458) HDDS-6795: EC: PipelineStateMap#addPipeline should not have precondition checks post db updates (apache#3453) HDDS-6823. Intermittent failure in TestOzoneECClient#testExcludeOnDNMixed (apache#3476) HDDS-6820. Bucket Layout Post-Finalization Validators for ACL Requests. (apache#3472) HDDS-6819. Add LEGACY to AllowedBucketLayouts in CreateBucketHandler (apache#3473) HDDS-4859. [FSO]ListKeys: seek all the files/dirs from startKey to keyPrefix (apache#3466) HDDS-6705 Add metrics for volume statistics including disk capacity, usage, Reserved (apache#3430) HDDS-6474. Add test to cover the FSO bucket list status with beyond batch boundary and cache. (apache#3379). Contributed by aswinshakil HDDS-6280. Support Container Balancer HA (apache#3423) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This task is to add
LEGACYtoAllowedBucketLayoutsin theCreateBucketHandlerclass.CreateBucketHandler.java#L65
While executing the
ozone sh bucket createcommand and passing anINVALIDbucket layout, we currently get the following error message:After the changes, this would be modified to:
Similarly,
ozone sh bucket create --helpgives the following description for"-l","--layout":After the changes, this would be modified to:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6819
How was this patch tested?
Added integration tests.