Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4650

Zookeeper client leaks file descriptor in case of UnresolvedAddressException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.14, 3.7.1
    • None
    • java client
    • None

    Description

      Zookeeper client is causing the file descriptor leak when it is unable to properly reach the destination. In this case, the DNS lookup fails but still leaves an unbounded TCP socket.

      A colleague took a heap dump of the application. Saw 17400 sun.nio.ch.SocketChannelImpl object reachable from root and the number matched the open file descriptors on the host.

       

      More analysis from the heap dump in the comment.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            shahrs87 Rushabh Shah
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: