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

Zookeeper client leaks file descriptor in case of UnresolvedAddressException

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            shahrs87 Rushabh Shah

            Dates

              Created:
              Updated:

              Slack

                Issue deployment