BUG-8219: Cleanup CompositeDataTreeCohort 19/55819/6
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Apr 2017 14:44:10 +0000 (16:44 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Sat, 22 Apr 2017 15:28:34 +0000 (15:28 +0000)
commit9155298250e0fbfc0534ab5553fc562289be268b
tree2588eb072fd5b5b2035051f6709ba581cf8f7b9a
parente016550fda7ddadc2b25a3a004713443782211af
BUG-8219: Cleanup CompositeDataTreeCohort

This patch reworks the logic so we can track which cohort times
out in case that happens. We also instantiate shortcuts so we do
not go through asynchronous processing if there are no cohorts
at all.

Change-Id: I9493b768c86e8d6b2d0f4f1d13f53b13ff98fe7b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CompositeDataTreeCohort.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortActorRegistry.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/SimpleShardDataTreeCohort.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/SimpleShardDataTreeCohortTest.java