BUG 2584 : Datastore is ready when all local shards have a leader 40/17140/3
authorMoiz Raja <moraja@cisco.com>
Thu, 26 Mar 2015 01:32:48 +0000 (18:32 -0700)
committerMoiz Raja <moraja@cisco.com>
Fri, 27 Mar 2015 08:50:44 +0000 (01:50 -0700)
commit1fbf74e08377dd5e003274be1a43df42d1678845
tree0924f266b896278b00ea34113b548f1d60a6e3f7
parent4349b034606957d3e876b82b14a292e6739a986a
BUG 2584 : Datastore is ready when all local shards have a leader

Earlier we were pre-maturely marking the datastore ready even when
the localshards simply transitioned to the follower state.

Change-Id: I41337497c762384317386ba9feebc192671bf65c
Signed-off-by: Moiz Raja <moraja@cisco.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