BUG-8219: Cleanup CompositeDataTreeCohort 59/55859/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Apr 2017 14:44:10 +0000 (16:44 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 23 Apr 2017 12:42:10 +0000 (12:42 +0000)
commit0b3bfca7f39ee1bb6dcf5379f44d0b402adeb7fe
treec43a2f57d4d6cedfcaf31077b43c5d2c845737ad
parent37c2db2320fb3d5e126e78129f841915163a9c9f
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>
(cherry picked from commit 9155298250e0fbfc0534ab5553fc562289be268b)
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