Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-437

zookeeper connection leak when session expires.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0
    • None
    • Client
    • None

    Description

      https://github.com/apache/curator/blob/master/curator-client/src/main/java/org/apache/curator/utils/InjectSessionExpiration.java#L97

      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.

      Attachments

        1. curator.log
          118 kB
          zealot

        Activity

          People

            Unassigned Unassigned
            zealot0630 zealot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: