Bug 8301: Fix some issues with testProducerRegistrations 58/56158/2
authorTom Pantelis <tompantelis@gmail.com>
Thu, 27 Apr 2017 10:45:11 +0000 (06:45 -0400)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 28 Apr 2017 15:27:38 +0000 (15:27 +0000)
commitb7cedcc1c346813f71a56eebb0e4abe9e6828ee6
tree3b1bf4a5b3aa40106bf1c5e39760f8c73f980dd4
parentf24948ddece8b195d317438bcd85fa44a03ce524
Bug 8301: Fix some issues with testProducerRegistrations

The LogicalDatastoreType.CONFIGURATION type was being used for both data
stores - modified the IntegrationTestKit to set the logicalStoreType
appropriately.

Fixed a synchronization issue in DistributedShardedDOMDataTree#lookupShardFrontend
where it accessed shards unprotected.

Change-Id: I628add86667e4a812f8e7516bac59f9b66fe4033
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
(cherry picked from commit 64b9093c2c9ce670b92f2d0ea44c76dc9a385b5a)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTree.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/IntegrationTestKit.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTreeRemotingTest.java