Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-6545. OzoneManagerUtils#getBucketLayout should not suppress bucket key lookup errors. #3277

Merged
merged 8 commits into from Apr 8, 2022

Conversation

JyotinderSingh
Copy link
Contributor

What changes were proposed in this pull request?

OzoneManagerUtils#getBucketLayout catches the bucket key lookup errors that might occur and returns BucketLayout.DEFAULT.
This behavior should be changed to throwing an error - otherwise it creates uncertainty.

This patch also reduces code duplication across the project for the getBucketLayout method.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-6545

How was this patch tested?

Integration Tests.

Copy link
Contributor

@rakeshadr rakeshadr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JyotinderSingh for the updated patch. Added a minor imprv in test.

Copy link
Contributor

@rakeshadr rakeshadr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM. Thanks @JyotinderSingh for the contribution.

@rakeshadr rakeshadr merged commit 805b5e1 into apache:master Apr 8, 2022
@JyotinderSingh JyotinderSingh deleted the HDDS-6545 branch April 8, 2022 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants