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

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

There are 10000 iteration since I wanted to have a large number of clients to 
test the probabilistic algorithm. A smaller number of clients
will probably work too. But actually I feel that I'm pretty close to solving 
this. Take a look here: 
http://stackoverflow.com/questions/10420317/java-inetaddress-gethostname-taking-a-very-long-time-to-execute

It seems like its better just to do string parsing instead of getHostName :)
                
> 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
>
>
> 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