CDS: Fix intermittent DistributedDataStoreRemotingIntegrationTest failure 68/26868/1
authorTom Pantelis <tpanteli@brocade.com>
Thu, 10 Sep 2015 17:24:01 +0000 (13:24 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Fri, 11 Sep 2015 18:36:23 +0000 (18:36 +0000)
commit547cd2b295d9715edede87f93fb215208da0b8df
tree8faf7488a755629e7b4cd1ffd2c44e539a4f6585
parentf68d961fd5fe2cd2a73f308355582fc8fda2a1d5
CDS: Fix intermittent DistributedDataStoreRemotingIntegrationTest failure

I've seen the testReadyLocalTransactionForwardedToLeader test fail
several times both locally and in jenkins:

DistributedDataStoreRemotingIntegrationTest.testReadyLocalTransactionForwardedToLeader:535
assertion failed: expected class
org.opendaylight.controller.protobuff.messages.cohort3pc.ThreePhaseCommitCohortMessages$CommitTransactionReply, found class akka.actor.Status$Failure

It's a timing issue where the follower may not yet have the leader.
After this patch the test ran 100 times w/o failure.

Change-Id: I542a7e87516e8d1f846cda6e2abc4d473e3de961
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
(cherry picked from commit 7fd01f9dc19ef8f02c1b70973fcb091dc0ad8b1e)
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreRemotingIntegrationTest.java