[
https://issues.apache.org/jira/browse/ZOOKEEPER-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rushabh Shah updated ZOOKEEPER-4650:
------------------------------------
Summary: Zookeeper client leaks file descriptor in case of
UnresolvedAddressException (was: Zookeeper client leaks file descriptor in
case of UnknownHostException)
> Zookeeper client leaks file descriptor in case of UnresolvedAddressException
> ----------------------------------------------------------------------------
>
> Key: ZOOKEEPER-4650
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4650
> Project: ZooKeeper
> Issue Type: Bug
> Components: java client
> Affects Versions: 3.4.14, 3.7.1
> Reporter: Rushabh Shah
> Priority: Major
> Attachments: Screen Shot 2022-12-13 at 4.30.34 PM.png
>
>
> 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.
> !Screen Shot 2022-12-13 at 4.30.34 PM.png!
>
> More analysis from the heap dump in the comment.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)