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

Lock recipe hang on on closed client #482

Open arushiagg opened 7 years ago

arushiagg commented 7 years ago

When using the lock recipe, if the client is closed, calling acquire hangs when trying to call ensure_path. https://github.com/python-zk/kazoo/blob/master/kazoo/recipe/lock.py#L121

Similar issue as #473

Is there a way to fix this? or is this expected behavior?