Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BUG 3045 : Use non-strict parsing in hello message.
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
DatastoreContextIntrospector.java
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 3ca64210bea11986689765fdeee5936f2ba99bc3..0bbeefd6fa64f3c5db3caf2e79f655dc4450a7c0 100644
(file)
--- 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.
*/
* @param properties the properties to apply
* @return true if the cached DatastoreContext was updated, false otherwise.
*/
- public boolean update(Dictionary<String, Object> properties) {
+ public
synchronized
boolean update(Dictionary<String, Object> properties) {
if(properties == null || properties.isEmpty()) {
return false;
}
if(properties == null || properties.isEmpty()) {
return false;
}
+ LOG.debug("In update: properties: {}", properties);
+
Builder builder = DatastoreContext.newBuilderFrom(context);
final String dataStoreTypePrefix = context.getDataStoreType() + '.';
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 {
}
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);
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));
if(ctor == null) {
throw new IllegalArgumentException(String.format("Constructor not found for type %s", toType));