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

Timothy Ward commented on ZOOKEEPER-2252:
-----------------------------------------

My reported issue ZOOKEEPER-2337 has been closed as a duplicate of this issue, 
but I notice that the proposed fix here uses another hostname that may or may 
not be valid on the machine doing the build.

I created a GitHub pull request here: 
https://github.com/apache/zookeeper/pull/48 which uses syntactically invalid 
hostnames. These can never be valid on any system, but still have the correct 
behaviour for the tests. This is much safer than trying to guess a 
syntactically valid hostname that isn't resolvable on any machine in the 
universe.

> Random test case failure in org.apache.zookeeper.test.StaticHostProviderTest
> ----------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2252
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2252
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.5.0
>            Reporter: Arshad Mohammad
>            Assignee: Arshad Mohammad
>            Priority: Minor
>             Fix For: 3.5.2, 3.6.0
>
>         Attachments: ZK-2252-try-repro-on-jenkins.patch, 
> ZOOKEEPER-2252-02.patch, ZOOKEEPER-2252-03.patch, ZOOKEEPER-2252-04.patch, 
> ZOOKEEPER-2252-05.patch
>
>
> Test 
> {{org.apache.zookeeper.test.StaticHostProviderTest.testTwoInvalidHostAddresses()}}
>  fails randomly.
> Refer bellow test ci buils:
> https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2827/testReport/
> https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2828/testReport/
> https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2830/testReport/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to