Bug 2135: Create ShardInformation on startup 59/12059/1
authortpantelis <tpanteli@brocade.com>
Wed, 8 Oct 2014 11:21:43 +0000 (07:21 -0400)
committerMoiz Raja <moraja@cisco.com>
Fri, 17 Oct 2014 19:16:15 +0000 (19:16 +0000)
commitd386367faeea25cd19b178ce1bd6fa76066e90ed
treeee35e9f19bd9fd820fedc8489551616dada80751
parente438254c7fc2af6c689963175257447c6b6b4946
Bug 2135: Create ShardInformation on startup

Modified the ShardManager to create the ShardInformation map on startup,
but without creating the shard actors yet, instead of when the SchemaContext is initialized.

When the SchemaContext is fully initialized then create the shard actors.

On FindLocalShard and FindPrimaryShard messages, only return a valid
response if the shard actor is created and it's initialized.

Change-Id: I361f2af9e53878f62c5890350afd7a5f2877b95c
Signed-off-by: tpantelis <tpanteli@brocade.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
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/InMemoryJournal.java