Fix intermittent test failures in PartitionedLeadersElectionScenarioTest 22/41022/1
authorTom Pantelis <tpanteli@brocade.com>
Wed, 29 Jun 2016 07:04:47 +0000 (03:04 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Wed, 29 Jun 2016 07:07:35 +0000 (03:07 -0400)
commit0f0accfc0a824efcb7e9cd8c533c610378589826
tree4af72b3a76e2a87865036a663f8413ab985b9d52
parent28ecb323a3108041e8acdb3431bbd319285208a1
Fix intermittent test failures in PartitionedLeadersElectionScenarioTest

Seeing intermittent failures on jenkins, eg

Failed tests:
  PartitionedLeadersElectionScenarioTest.runTest1:37->setupInitialMemberBehaviors:313->AbstractLeaderElectionScenarioTest.initializeLeaderBehavior:207
Missing messages of type class
org.opendaylight.controller.cluster.raft.messages.AppendEntriesReply

Sometimes the initial AppendEntries messages go to dead letters,
probably b/c the follower actors haven't been fully created/initialized by akka.
So added retries as a workaround.

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