Fix intermittent testFlipMemberVotingStates failure 99/74299/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 03:26:47 +0000 (23:26 -0400)
commit19dda47fc3d00213fbddd3c6a70cbb5b3c898c8a
tree18ac9b177553c23302fbc5d596540494fefd0d03
parenteb64259379b9c6d91efd671c88d77f6d2b364477
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>
opendaylight/md-sal/sal-cluster-admin-impl/src/test/java/org/opendaylight/controller/cluster/datastore/admin/ClusterAdminRpcServiceTest.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.