You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Bill Havanki (JIRA)" <ji...@apache.org> on 2014/07/14 19:04:08 UTC

[jira] [Commented] (ZOOKEEPER-1964) Fix Flaky Test in ReconfigTest.java

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

Bill Havanki commented on ZOOKEEPER-1964:
-----------------------------------------

Works for me. I would get the same problem (on a Mac).

> Fix Flaky Test in ReconfigTest.java
> -----------------------------------
>
>                 Key: ZOOKEEPER-1964
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1964
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Hongchao Deng
>            Assignee: Hongchao Deng
>            Priority: Minor
>         Attachments: ZOOKEEPER-1964.patch, ZOOKEEPER-1964.patch
>
>
> There is flaky tests in ReconfigTest showing something like:
> {code}
> junit.framework.AssertionFailedError: Mismatches ElectionAddress! expected:<[127.0.0.1]:12369> but was:<[localhost]:12369>
> 	at org.apache.zookeeper.test.ReconfigTest.assertRemotePeerMXBeanAttributes(ReconfigTest.java:967)
> 	at org.apache.zookeeper.test.ReconfigTest.testJMXBeanAfterRemoveAddOne(ReconfigTest.java:809)
> 	at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
> {code}
> Basically, the problem is that there might be inconsistency between numerical ip and literal ip. Converting both sides to one (numerical IP) will fix it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)