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

Arshad Mohammad commented on ZOOKEEPER-2337:
--------------------------------------------

Thanks [~timothyjward] for reporting this issue, though this has already been 
reported in ZOOKEEPER-2252 and patch is available. Closing this as duplicate, 
Please reopen if you feel otherwise

> Fake "invalid" hostnames used in tests are sometimes valid
> ----------------------------------------------------------
>
>                 Key: ZOOKEEPER-2337
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2337
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.4.7, 3.5.1, 3.6.0
>            Reporter: Timothy Ward
>            Assignee: Timothy Ward
>             Fix For: 3.4.8, 3.5.2, 3.6.0
>
>
> Some of the ZooKeeper tests use "fake" hostnames to trigger host resolution 
> failures. The problem with this is that it uses valid hostnames which are 
> sometimes configured in VMs.
> At the moment I am unable to build cleanly because I get test failures on the 
> two test methods that do this. The tests work equally well if syntactically 
> invalid hostnames are used, and the test cases become more portable at the 
> same time.
> The affected test cases are:
> org.apache.zookeeper.test.StaticHostProviderTest.testTwoInvalidHostAddresses 
> and 
> org.apache.zookeeper.test.StaticHostProviderTest.testOneInvalidHostAddresses
> See GitHub pull request https://github.com/apache/zookeeper/pull/48 for a 
> proposed fix



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

Reply via email to