zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Camille Fournier (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-1652) zookeeper java client does a reverse dns lookup when connecting
Date Tue, 05 Nov 2013 02:34:18 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813578#comment-13813578
] 

Camille Fournier commented on ZOOKEEPER-1652:
---------------------------------------------

Elected to make a patch for ZOOKEEPER-1666 that makes that work on 3.4.6. Please look there
for that, and leave comments.

> zookeeper java client does a reverse dns lookup when connecting
> ---------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1652
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1652
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>    Affects Versions: 3.4.5
>            Reporter: Sean Bridges
>            Assignee: Sean Bridges
>            Priority: Critical
>         Attachments: ZOOKEEPER-1652.patch
>
>
> When connecting to zookeeper, the client does a reverse dns lookup on the hostname. 
In our environment, the reverse dns lookup takes 5 seconds to fail, causing zookeeper clients
to connect slowly.
> The reverse dns lookup occurs in ClientCnx in the calls to adr.getHostName()
> {code}
>             setName(getName().replaceAll("\\(.*\\)",
>                     "(" + addr.getHostName() + ":" + addr.getPort() + ")"));
>             try {
>                 zooKeeperSaslClient = new ZooKeeperSaslClient("zookeeper/"+addr.getHostName());
>             } catch (LoginException e) {
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message