-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[ZOOKEEPER-1416] Persistent Recursive Watch #136
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
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
3c05c67
basic work done. Needs more testing, tuning, etc.
Randgalt ca4a000
working on persistent watcher removal
Randgalt bf13ded
Support resetting persistent watches
Randgalt 27d8d6c
docs
Randgalt 2766fb1
containsWatcher() was broken for STANDARD watchers
Randgalt 86fa1fb
removed unused import
Randgalt b490c84
Updated doc for persistent watches
Randgalt e00b7a9
Fixed some Jenkins issues
Randgalt d60fde7
Fix a few nits:
Randgalt 0b50826
Based on suggestion from eribeiro make PathIterator usable in for eac…
Randgalt 073d693
fixed bad newline
Randgalt 1272e4f
spacing
Randgalt 99a0088
fixed a few nits
Randgalt 84410e1
Inlcude deletions in persistent watcher tests
Randgalt 48d7f64
Don't trigger NodeChildrenChanged for persistent watches. It's redundant
Randgalt 8332eb4
PathIterator.next() should throw NoSuchElementException if no next el…
Randgalt 23756a1
add root watcher test
Randgalt 692db2d
doc updates
Randgalt 29d3c6c
more doc
Randgalt 61c2211
fixed misspelling
Randgalt 3354369
doc clarification
Randgalt 2e4fcbb
Merge branch 'master' into ZOOKEEPER-1416
Randgalt 088dfb9
Renamed PathIterator to PathParentIterator for better clarity
Randgalt 9a11ee5
Optimization: don't iterate through to parent paths unless the system…
Randgalt 51ef9be
Use try-with-resources for cleaner code
Randgalt 4c9f24b
added javadoc
Randgalt 4fcbe4f
Merge branch 'master' into ZOOKEEPER-1416
Randgalt 072df53
1. made the recursion feature of persistent watches optional. i.e. yo…
Randgalt 97a9f3e
doc updates for recursive watches
Randgalt 19fc766
doc updates for recursive watches
Randgalt 30ef7af
doc updates for recursive watches
Randgalt 6345881
Cleaner method of checking for recursive watches
Randgalt cb45e56
Merge branch 'master' into ZOOKEEPER-1416
Randgalt 15e0a1d
Needed license header
Randgalt 5a43ef8
Merge branch 'master' into ZOOKEEPER-1416
Randgalt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since we are targeting a new major release with this change, can we just make changes to the preexisting
setWatches?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.
I plan on backporting this to 3.5.x so I'd vote against that.
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.
I don't think just because we are backporting this we need to keep this the same between the branches. I feel we should take advantage of the new version and keep the code as clean as possible. @hanm do you have an opinion on the matter?
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.
@Randgalt im guessing you meant to put "The problem is that it makes 3.5.4 clients incompatible with 3.5.3 servers. That might make sense for 3.6.0 but it's unreasonable for .x.N release." here. I agree totally. This code should stay the same in the 3.5 line but there is no reason it needs to be identical to the 3.6 line which is why i think it should be changed "here".
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.
I see - sure that's OK with me. Frankly, anything to get this PR moving. It's been almost impossible to get a ZK committer interested in this and I see this as a vital addition to ZK.