[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Shraer updated ZOOKEEPER-1603:
----------------------------------------

    Attachment: ZOOKEEPER-1603.patch

Hi Patrick, 

I replaced "new InetHostProvider" with InetHostProver.createUnresolved" in the 
test but since it invokes StaticHostProvider constructor which attempts to do 
some resolution, there's still going to be an attempt to resolve the addresses. 
It does run a lot faster this way for me (25sec -> 7 sec on my laptop), let me 
know if it is reasonable now.

BTW, do you see the same problem with C tests ?

Thanks!
Alex
                
> 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