Fix initial datastore configuration 67/93867/1
authortadei.bilan <tadei.bilan@pantheon.tech>
Fri, 6 Nov 2020 14:47:25 +0000 (16:47 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Nov 2020 16:49:20 +0000 (17:49 +0100)
commit663fca27e95e9923735b60cf38b4f90357d2b5ce
tree89d0c04b14d2daa46f296fa4a205f621db4b966a
parent6c410ed736af3531548a92333a368dde0d868280
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>
(cherry picked from commit 282fd5f43263464180a2ecc806c0eb333f0f2c5c)
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