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-1666) Avoid Reverse DNS lookup if the hostname in connection string is literal IP address.
Date Sat, 09 Nov 2013 20:08:17 GMT

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

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

Which curly brace looks misaligned? They all look ok to me, and I had eclipse auto-align.
I can fix the line length, it won't match 3.5 anymore but that's ok.


> 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-34.patch, ZOOKEEPER-1666-34v2.patch, 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)

Mime
View raw message