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-6943. Reject property change requests on link buckets #3546

Merged
merged 2 commits into from Jun 27, 2022

Conversation

adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Jun 24, 2022

What changes were proposed in this pull request?

Trying to set quota on a link bucket converts it to a regular bucket, because the source volume/bucket information is lost at OM during request processing. This could be fixed similarly to HDDS-6941. However, quota, layout, and other properties are not applicable to links. So this PR proposes to reject property change requests on link buckets.

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

How was this patch tested?

Added unit test:
https://github.com/adoroszlai/hadoop-ozone/runs/7040743390#step:5:1962

and acceptance test:
https://github.com/adoroszlai/hadoop-ozone/runs/7041017030#step:5:138

@adoroszlai adoroszlai self-assigned this Jun 24, 2022
@adoroszlai adoroszlai changed the title HDDS-6943. Linked bucket layout types changes on setQuota HDDS-6943. Reject property change requests on link buckets Jun 24, 2022
@adoroszlai adoroszlai added the om label Jun 24, 2022
Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

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

Makes sense to me to reject.
LGTM

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 @adoroszlai for the contribution. I will merge it shortly.

@thanks @ayushtkn for the reviews.

@rakeshadr rakeshadr merged commit 178103b into apache:master Jun 27, 2022
@adoroszlai
Copy link
Contributor Author

Thanks @ayushtkn for the review, @rakeshadr for reviewing and merging this.

@adoroszlai adoroszlai deleted the HDDS-6943 branch June 27, 2022 11:48
duongkame pushed a commit to duongkame/ozone that referenced this pull request Aug 16, 2022
apache#3546)

(cherry picked from commit 178103b)
Change-Id: I1e75a35717ec152f620bae689d4944349de745a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants