-
Notifications
You must be signed in to change notification settings - Fork 387
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
Close the ChildrenWatch if the node doesn't exist. #393
Close the ChildrenWatch if the node doesn't exist. #393
Conversation
dd8cbc4
to
baec5f9
Compare
This implementation resolves the "NoNodeError" while watching children. Fix python-zk#149.
baec5f9
to
6fd5062
Compare
@bbangert Could you review this patch? |
|
||
# delete watching | ||
self.client.delete(path) | ||
time.sleep(1) |
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.
It'd be nice if there was a non-timing dependent way to wait for this. But I understand there may not be. Maybe if the test tries to grab the watchers _run_lock which should be released as soon as _stopped is set and returned?
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.
It is a good idea. I will have a try.
LGTM |
141b90b
to
b742888
Compare
b742888
to
2016924
Compare
Backport python-zk#393 into eleme-2.0
This implementation resolves the "NoNodeError" while watching children.
Fix #149.