-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CURATOR-715. bottom up existence check for mkdirs #506
CURATOR-715. bottom up existence check for mkdirs #506
Conversation
I would vote up the fix , this is real blocker to anybody upgrading zookeeper to version with fix for ZOOKEEPER-2590 |
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.
+1
@apache/curator-committers can you please take a look ?
Hopefully we can include this in the next release, looking for a second reviewer |
Thank you @eolivelli! I've just pushed code style fix after executing |
@pfcoperez Merged. Thank you for your contribution! |
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 your contribution!
Looks reasonable.
Thank you @eolivelli @kezhuw and @tisonkun for your reviews 🙇 Do you have any plans of releasing before the end of the year? |
Please ask on dev@curator.apache.org |
This PR tackles the problem reported in https://issues.apache.org/jira/browse/CURATOR-715.
Namely, that for ZooKeeper trees where upper nodes have restricted READ ACLs, it is not possible to use
creatingParentsIfNeeded
without changing the ACLs.This is because the implementation prior to this patch iterated from root node to the newly created one, checking existence of all intermediate nodes.
This patch changes that approach from top-down to bottom-up and the first ancestor that exists is where the validation stops thus avoiding
exists
checks on the higher nodes with more restricted access.This is only relevant since https://issues.apache.org/jira/browse/ZOOKEEPER-2590