Fix intermittent testFlipMemberVotingStates failure 08/74308/1
authorTom Pantelis <tompantelis@gmail.com>
Sat, 21 Jul 2018 03:26:47 +0000 (23:26 -0400)
committerTom Pantelis <tompantelis@gmail.com>
Sat, 21 Jul 2018 23:58:02 +0000 (23:58 +0000)
commitf3ef06a4a76dfbd5c305ba1f0ffdbd5f1997fb40
tree267e6792a53cb9d47403af01cbd66d2a6af9bf25
parent248d53d44c97a15b13516462a6fe1ec2913d2721
Fix intermittent testFlipMemberVotingStates failure

Failure was see in auto-release:

ClusterAdminRpcServiceTest.testFlipMemberVotingStates:976->lambda$testFlipMemberVotingStates$8:978 Expected leader member-1. Actual: member-1-shard-cars-oper_testFlipMemberVotingStates

The test output showed it timed out trying to transfer leadership to member-3. The
timeout deadline is the election timeout interval which is the
heartbeatInterval * election-timeout-factor which were set to 300 and 1.
It seems 300ms is a bit too low for comfort so I changed it to 1000ms (100 * 10);

Change-Id: I1e3c79de960dcced8af71fecdf1ab8bdba433448
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
(cherry picked from commit 19dda47fc3d00213fbddd3c6a70cbb5b3c898c8a)
opendaylight/md-sal/sal-cluster-admin-impl/src/test/java/org/opendaylight/controller/cluster/datastore/admin/ClusterAdminRpcServiceTest.java