commit | 80fe442f93f02fc135445bd445ac6d7215a3c0a5 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Tue May 24 18:47:37 2016 -0700 |
committer | Jonathan Hart <jono@onlab.us> | Tue May 24 18:47:37 2016 -0700 |
tree | 464231440e012bf37749f6e65b3aa17097813435 | |
parent | 3a9a6447b3680389a0b7a5eef4be47e4146f6d52 [diff] |
Add more logging to try and track down the root cause of ONOS-4605. Change-Id: Ife0663ca16565b990fbae97182e97c33f0df60ae
diff --git a/core/store/dist/src/main/java/org/onosproject/store/config/impl/DistributedNetworkConfigStore.java b/core/store/dist/src/main/java/org/onosproject/store/config/impl/DistributedNetworkConfigStore.java index 41167ed..4df3f21 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/config/impl/DistributedNetworkConfigStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/config/impl/DistributedNetworkConfigStore.java
@@ -207,6 +207,11 @@ ImmutableSet.Builder<Class<? extends Config<S>>> builder = ImmutableSet.builder(); configs.keySet().forEach(k -> { if (Objects.equals(subject, k.subject) && k.configClass != null && delegate != null) { + ConfigFactory<S, ? extends Config<S>> configFactory = factoriesByConfig.get(k.configClass); + if (configFactory == null) { + log.error("Found config but no config factory: subject={}, configClass={}", + subject, k.configClass); + } builder.add(factoriesByConfig.get(k.configClass).configClass()); } });