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

Michael Han commented on ZOOKEEPER-3141:
----------------------------------------

The address `fee.fii.foo.fum` was from another test case in same file: 
[testBadPeerAddressInQuorum|
https://github.com/apache/zookeeper/blob/master/src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java#L597].
 One possibility is apache Jenkins was running multiple test cases and for some 
reasons, one test case (testBadPeerAddressInQuorum) interferes the other 
(testLeaderElectionWithDisloyalVoter_stillHasMajority). I've seen some flaky 
tests caused by interference between test cases, but this one is new to me.

I set up a stress test on apache jenkins just to run 
testLeaderElectionWithDisloyalVoter_stillHasMajority alone and if the failure 
does not reproduce then it's likely the interferences between test cases are 
the cause. 


> testLeaderElectionWithDisloyalVoter is flaky
> --------------------------------------------
>
>                 Key: ZOOKEEPER-3141
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3141
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: leaderElection, server, tests
>    Affects Versions: 3.6.0
>            Reporter: Michael Han
>            Priority: Major
>
> The unit test added in ZOOKEEPER-3109 turns out to be quite flaky.
> See 
> [https://builds.apache.org/job/zOOkeeper-Find-Flaky-Tests/511/artifact/report.html]
> Recent failure builds:
> [https://builds.apache.org/job/ZooKeeper-trunk//181] 
> [https://builds.apache.org/job/ZooKeeper-trunk//179] 
> [https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/2123/testReport/junit/org.apache.zookeeper.server.quorum/QuorumPeerMainTest/testLeaderElectionWithDisloyalVoter_stillHasMajority/]
>  
>  
> Snapshot of the failure:
> {code:java}
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testLeaderElectionWithDisloyalVoter_stillHasMajority
> Error Message
> Server 0 should have joined quorum by now
> Stacktrace
> junit.framework.AssertionFailedError: Server 0 should have joined quorum by 
> now
>       at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testLeaderElection(QuorumPeerMainTest.java:1482)
>       at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testLeaderElectionWithDisloyalVoter_stillHasMajority(QuorumPeerMainTest.java:1431)
>       at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:79)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to