Add more logging to try and track down the root cause of ONOS-4605.
Change-Id: Ife0663ca16565b990fbae97182e97c33f0df60ae
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -207,6 +207,11 @@ public class DistributedNetworkConfigStore | ... | @@ -207,6 +207,11 @@ public class DistributedNetworkConfigStore |
207 | ImmutableSet.Builder<Class<? extends Config<S>>> builder = ImmutableSet.builder(); | 207 | ImmutableSet.Builder<Class<? extends Config<S>>> builder = ImmutableSet.builder(); |
208 | configs.keySet().forEach(k -> { | 208 | configs.keySet().forEach(k -> { |
209 | if (Objects.equals(subject, k.subject) && k.configClass != null && delegate != null) { | 209 | if (Objects.equals(subject, k.subject) && k.configClass != null && delegate != null) { |
210 | + ConfigFactory<S, ? extends Config<S>> configFactory = factoriesByConfig.get(k.configClass); | ||
211 | + if (configFactory == null) { | ||
212 | + log.error("Found config but no config factory: subject={}, configClass={}", | ||
213 | + subject, k.configClass); | ||
214 | + } | ||
210 | builder.add(factoriesByConfig.get(k.configClass).configClass()); | 215 | builder.add(factoriesByConfig.get(k.configClass).configClass()); |
211 | } | 216 | } |
212 | }); | 217 | }); | ... | ... |
-
Please register or login to post a comment