python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 387 forks source link

fix(core): revert PR #305 SetWatches which caused RuntimeError #450

Closed bbangert closed 7 years ago

bbangert commented 7 years ago

PR #305 introduced a feature to restore watches on reconnect. Unfortunately this introduced RuntimeError's under various cases, so reverting it is necessary.

bbangert commented 7 years ago

For further reference, the TreeCache PR did not work with this, and the following StackOverflow question appears related: https://stackoverflow.com/questions/44448694/kazoo-restarted-zookeeper-the-watch-threw-an-exception