[
https://issues.apache.org/jira/browse/ZOOKEEPER-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141285#comment-13141285
]
Camille Fournier commented on ZOOKEEPER-1264:
---------------------------------------------
Yeah, sorry, these concurrency tests are pretty much impossible to write
deterministically without some additional scaffolding. If you look at lines
152-158 of the test, you want the thread that I started to have transactions
passing through the leader when the qu.restart at 153 loads the follower. The
follower should get a snapshot from the leader, a few more pending
transactions, and then additional transactions that cause a log file to be
written that will have a zxid that is not the zxid of the snapshot it created +
1. For example from Pat's log:
2011-10-28 17:09:56,691 [myid:] - INFO
[QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:11221:FileTxnSnapLog@255] - Snapshotting:
100002322
(indicating the NEWLEADER)
then
2011-10-28 17:09:59,316 [myid:] - WARN
[QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:11221:Follower@118] - Got zxid 0x100002c3e
expected 0x1
2011-10-28 17:09:59,330 [myid:] - INFO [SyncThread:1:FileTxnLog@195] -
Creating new log file: log.100002c3e
> FollowerResyncConcurrencyTest failing intermittently
> ----------------------------------------------------
>
> Key: ZOOKEEPER-1264
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1264
> Project: ZooKeeper
> Issue Type: Bug
> Components: tests
> Affects Versions: 3.3.3, 3.4.0, 3.5.0
> Reporter: Patrick Hunt
> Assignee: Camille Fournier
> Priority: Blocker
> Fix For: 3.3.4, 3.4.0, 3.5.0
>
> Attachments: ZOOKEEPER-1264.patch, ZOOKEEPER-1264.patch,
> ZOOKEEPER-1264_branch33.patch, ZOOKEEPER-1264_branch34.patch,
> followerresyncfailure_log.txt.gz, logs.zip, tmp.zip
>
>
> The FollowerResyncConcurrencyTest test is failing intermittently.
> saw the following on 3.4:
> {noformat}
> junit.framework.AssertionFailedError: Should have same number of
> ephemerals in both followers expected:<11741> but was:<14001>
> at
> org.apache.zookeeper.test.FollowerResyncConcurrencyTest.verifyState(FollowerResyncConcurrencyTest.java:400)
> at
> org.apache.zookeeper.test.FollowerResyncConcurrencyTest.testResyncBySnapThenDiffAfterFollowerCrashes(FollowerResyncConcurrencyTest.java:196)
> at
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira