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

Camille Fournier commented on ZOOKEEPER-1666:
---------------------------------------------

I got this into 3.5, but it requires a bit of a rewrite to work for 3.4.6. If 
we want to put it there, I need you to write it to fit, [~georgecao]. LMK, 
otherwise I will resolve this for just 3.5.

> Avoid Reverse DNS lookup if the hostname in connection string is literal IP 
> address.
> ------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1666
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1666
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: java client
>            Reporter: George Cao
>            Assignee: George Cao
>              Labels: patch, test
>         Attachments: ZOOKEEPER-1666.patch, ZOOKEEPER-1666.patch
>
>
> In our ENV, if the InetSocketAddress.getHostName() is called and the host 
> name in the connection string are literal IP address, then the call will 
> trigger a reverse DNS lookup which is very slow.
> And in this situation, the host name can simply set as the IP without causing 
> any problem. 



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

Reply via email to