Fix sporadic ShardManagerTest failures 28/34928/3
authorTom Pantelis <tpanteli@brocade.com>
Wed, 17 Feb 2016 18:55:20 +0000 (13:55 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 19 Feb 2016 14:31:27 +0000 (14:31 +0000)
commit2f6d96da89035d5aec78c90bce5065d2f202a515
tree5a66fe2e04dd12968542ce8ab0b5fb46ab1b734d
parentea21cef6fcfe81e2681a4e6f733ace7d1d22128e
Fix sporadic ShardManagerTest failures

Some of the tests fail sporadically. Most were alleviated by:

  - using tell on an actor rather than calling receiveCommand directly
  - using the normal fork/join dispatcher for creating TestActors instead
    of the default CallingThread dispatcher.

After the changes the tests ran over 200 times successfully.

Change-Id: Ib2c7c3b6dace9e89dff54eccc58a2b8aabad75de
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java