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

Alexander Shraer commented on ZOOKEEPER-1603:
---------------------------------------------

You're right. This required some more changes (to create the addresses with IP 
that we can use and not with hostname).

Please notice the second change in StaticHostProvider.java (will affect all 
clients):

             InetAddress resolvedAddresses[] = InetAddress.getAllByName(address
-                    .getHostName());
+                    .getAddress().getHostAddress());


This achieved a significant speedup. Hopefully this is equivalent.

                
> StaticHostProviderTest testUpdateClientMigrateOrNot hangs
> ---------------------------------------------------------
>
>                 Key: ZOOKEEPER-1603
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1603
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: 3.5.0
>            Reporter: Patrick Hunt
>            Assignee: Alexander Shraer
>            Priority: Blocker
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-1603.patch, ZOOKEEPER-1603-ver1.patch
>
>
> StaticHostProviderTest method testUpdateClientMigrateOrNot hangs forever.
> On my laptop getHostName for 10.10.10.* takes 5+ seconds per call. As a 
> result this method effectively runs forever.
> Every time I run this test it hangs. Consistent.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to