Fix initial datastore configuration 27/93627/8
authortadei.bilan <tadei.bilan@pantheon.tech>
Fri, 6 Nov 2020 14:47:25 +0000 (16:47 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 17 Nov 2020 16:46:52 +0000 (16:46 +0000)
commit282fd5f43263464180a2ecc806c0eb333f0f2c5c
tree3a6c274cccc005d9aab646d36ed5dd418fb94a81
parent1b8b80be1a8c7dbc3de11d8e4e283a755fa9a14f
Fix initial datastore configuration

Shards need to be initialized with initial configuration upon creation,
otherwise they end up being reconfigured. Make sure callers are aware
of this caveat by requiring explicit properties on instantiation.

JIRA: CONTROLLER-1970
Change-Id: I3d6f96780d26435ac178ec9935f0f67befe3687a
Signed-off-by: tadei.bilan <tadei.bilan@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractDatastoreContextIntrospectorFactory.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospectorFactory.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/OSGiDistributedDataStore.java