Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.0.0
-
None
-
None
Description
Curator inject will set zookeeper state to CLOSED when session expires without close zk associated threads.
If state set to CLOSED, ZooKeeper.close() function won't be able to release resources properly, which lead to memory and connection leak.
To reproduce, create a curator client, then shutdown zk server, wait for session timeout, restart the zk server. There will be two ZooKeeper instances and two connections to the server.