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
Conversation
There was a problem hiding this 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.
…tedly, add handle adding different acl rights to existing acl entry
…tedly, add handle adding different acl rights to existing acl entry
@xiaoyuyao Thanks for reviews, it's helped me a lot, added handle adding different acl rights to existing acl entry in my new changes |
There was a problem hiding this 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.
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmOzoneAclMap.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmOzoneAclMap.java
Show resolved
Hide resolved
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmOzoneAclMap.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmOzoneAclMap.java
Show resolved
Hide resolved
+1. Thanks @masstter for the contribution and @xiaoyuyao for the code review. |
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