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

block after ensure_path on closed client #473

Open antivabo opened 7 years ago

antivabo commented 7 years ago

Case: zk = KazooClient(hosts=zk_hosts) zk.start() zk.stop() zk.close() zk.ensure_path('/path/path')

After last current thread will be blocked. Seems that reason the same as described here - https://github.com/python-zk/kazoo/pull/139

Should it be fixed or this treated as normal behaviour?