Fix intermittent failure in ReplicationAndSnapshotsIntegrationTest 42/38242/3
authorTom Pantelis <tpanteli@brocade.com>
Fri, 29 Apr 2016 08:16:49 +0000 (04:16 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Mon, 2 May 2016 20:02:35 +0000 (20:02 +0000)
commitfc3e438ca11af37102c3e29e5ef38af85b9f286c
treeb8d78a3d0d33a295a8d94b1ebd06fe84366aa895
parentd4fa6758d6b94aad894854c0fe6fcd82e7bbefd6
Fix intermittent failure in ReplicationAndSnapshotsIntegrationTest

Verification of the follower's snapshot intermittently fails in
testFirstSnapshot. The problem is that the last applied term/index may
or may not reflect the last log index. The test doesn't expect it to and
most of the time it doesn't but it can, which is perfectly fine. So to
avoid intermittent failures I changed it to just verify the snapshot's
last log term/index which shoild be constant.

Change-Id: I8c6d920bea557dcc2ef25b5d37239fdb94a13b8b
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/ReplicationAndSnapshotsIntegrationTest.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.