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-4606. Detect and handle duplicate ACLs when set default ACLs #1716

Merged
merged 6 commits into from Dec 24, 2020

Conversation

masstter
Copy link
Contributor

@masstter masstter commented Dec 16, 2020

HDDS-4606. Got wrong ACL(s) when set default ACL(s) on volume for repeatedly

What changes were proposed in this pull request?

ignored duplicate entity when adding volume default ACL(s)

What is the link to the Apache JIRA

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

How was this patch tested?

updating ACL(s) repeatedly, then using ozone CLI to check ACL(s), it's not repeating -- passed
image
image

@masstter masstter changed the title HDDS-4606. Got wrong acls when set default Acl(s) on volume for repeatedly HDDS-4606. Got wrong ACL(s) when set default ACL(s) on volume for repeatedly Dec 16, 2020
Copy link
Contributor

@xiaoyuyao xiaoyuyao left a comment

Choose a reason for hiding this comment

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

Thanks for reporting the issue. The fix only handle one case for adding exactly same ACL. We still need to handle adding different acl rights to existing acl entry. This can be done similar to the way access acl is handled via BitSet.

joinlin added 2 commits December 21, 2020 13:24
…tedly, add handle adding different acl rights to existing acl entry
…tedly, add handle adding different acl rights to existing acl entry
@masstter
Copy link
Contributor Author

@xiaoyuyao Thanks for reviews, it's helped me a lot, added handle adding different acl rights to existing acl entry in my new changes

@ChenSammi ChenSammi changed the title HDDS-4606. Got wrong ACL(s) when set default ACL(s) on volume for repeatedly HDDS-4606. Detect duplicate ACL when set default ACLs Dec 23, 2020
@ChenSammi ChenSammi changed the title HDDS-4606. Detect duplicate ACL when set default ACLs HDDS-4606. Detect duplicate ACLs when set default ACLs Dec 23, 2020
@ChenSammi ChenSammi changed the title HDDS-4606. Detect duplicate ACLs when set default ACLs HDDS-4606. Detect and handle duplicate ACLs when set default ACLs Dec 23, 2020
@masstter masstter marked this pull request as draft December 23, 2020 05:00
@masstter masstter marked this pull request as ready for review December 23, 2020 05:01
Copy link
Contributor

@ChenSammi ChenSammi left a comment

Choose a reason for hiding this comment

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

That patch overall looks good, just a few minor comments.

@ChenSammi
Copy link
Contributor

+1. Thanks @masstter for the contribution and @xiaoyuyao for the code review.

@ChenSammi ChenSammi merged commit b91c1f9 into apache:master Dec 24, 2020
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