X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDatastoreContextIntrospector.java;h=0bbeefd6fa64f3c5db3caf2e79f655dc4450a7c0;hb=30507b196fa240a4176ba12102ac0469280feff9;hp=3ca64210bea11986689765fdeee5936f2ba99bc3;hpb=6b9787d26aab04acf95fa30601291380f9b1d5c9;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospector.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospector.java index 3ca64210be..0bbeefd6fa 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospector.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospector.java @@ -196,11 +196,13 @@ public class DatastoreContextIntrospector { * @param properties the properties to apply * @return true if the cached DatastoreContext was updated, false otherwise. */ - public boolean update(Dictionary properties) { + public synchronized boolean update(Dictionary properties) { if(properties == null || properties.isEmpty()) { return false; } + LOG.debug("In update: properties: {}", properties); + Builder builder = DatastoreContext.newBuilderFrom(context); final String dataStoreTypePrefix = context.getDataStoreType() + '.'; @@ -291,12 +293,12 @@ public class DatastoreContextIntrospector { } private Object constructorValueRecursively(Class toType, Object fromValue) throws Exception { - LOG.debug("convertValueRecursively - toType: {}, fromValue {} ({})", + LOG.trace("convertValueRecursively - toType: {}, fromValue {} ({})", toType.getSimpleName(), fromValue, fromValue.getClass().getSimpleName()); Constructor ctor = constructors.get(toType); - LOG.debug("Found {}", ctor); + LOG.trace("Found {}", ctor); if(ctor == null) { throw new IllegalArgumentException(String.format("Constructor not found for type %s", toType));