Fix sporadic ShardManagerTest failures 07/35107/2
authorTom Pantelis <tpanteli@brocade.com>
Wed, 17 Feb 2016 18:55:20 +0000 (13:55 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 20 Feb 2016 00:40:11 +0000 (00:40 +0000)
commit1391f13411f7cbe887581bd6f13c9508eb8cfa09
tree13145e7f7c1027591c109004f2df3cd0e2649c27
parent186617ce93b9d1be3c87f3bd877a22adde6747c9
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>
(cherry picked from commit 2f6d96da89035d5aec78c90bce5065d2f202a515)
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