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

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

> Is this a problem regardless of whether it's a test or real code?

Yes - but this was not introduced by ZK-1355, the address resolution was always 
there just wasn't tested. I'm guessing you'll see delays if you provide the 
real client with non-existent addresses like I do in the test.

I just noticed that I already have a separate constructor for 
StaticHostProvider that is invoked from the test, so I can make it avoid 
resolution of addresses when running the test. I wanted to avoid doing this 
earlier because its nice that both constructors use resolveAndShuffle so we're 
actually testing the deployed code.

> What's the underlying problem? Any idea why I see this and it's not an issue 
> on, for example, jenkins?

I didn't see this problem on my Mac but I do see it on Linux. Perhaps it has 
something to do with this ?
http://stackoverflow.com/questions/1608503/domain-name-resolution-not-working-in-java-applications-on-ubuntu64-9-04-machine
 

                
> 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