[
https://issues.apache.org/jira/browse/ZOOKEEPER-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571106#comment-13571106
]
lixiaofeng commented on ZOOKEEPER-1606:
---------------------------------------
So the test itself didn't consider situations when s5 is not the leader. My
solution is to find the actual leader by examining each peer's peerState, using
leaderSid to determine the followers. I used an list in my first attempt, but
qb.setupServers() will reinstantiate all peers, invalidating all previous
references. And now I realized that the leader reference is also invalid. :(
> intermittent failures in ZkDatabaseCorruptionTest on jenkins
> ------------------------------------------------------------
>
> Key: ZOOKEEPER-1606
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1606
> Project: ZooKeeper
> Issue Type: Bug
> Components: tests
> Affects Versions: 3.5.0, 3.4.5
> Reporter: Patrick Hunt
> Labels: newbie, test-patch
> Fix For: 3.5.0, 3.4.6
>
> Attachments: zookeeper-1606.patch
>
>
> ZkDatabaseCorruptionTest is failing intermittently on jenkins with:
> "Error Message: the last server is not the leader"
> Seeing this on jdk7/openjdk7/solaris - 3 times in the last month.
> https://builds.apache.org/view/S-Z/view/ZooKeeper/job/ZooKeeper-trunk-openjdk7/2/testReport/junit/org.apache.zookeeper.test/ZkDatabaseCorruptionTest/testCorruption/
--
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