[CONTROLLER-302] Race condition in ConfigPersisterActivator - registering as JMX listener can occur sooner than netconf-impl is started Created: 09/Apr/14  Updated: 25/Jul/23  Resolved: 15/Apr/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Tomas Olvecky Assignee: Tomas Olvecky
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 707

 Description   

13:15:51.520 [config-pusher] DEBUG o.o.c.n.persist.impl.ConfigPusher - All configuration snapshots have been pushed successfully.
13:15:51.520 [config-pusher] INFO o.o.c.n.p.i.o.ConfigPersisterActivator - Configuration Persister initialization completed.
Exception in thread "config-pusher" java.lang.RuntimeException: Cannot register as JMX listener to netconf
at org.opendaylight.controller.netconf.persist.impl.ConfigPersisterNotificationHandler.registerAsJMXListener(ConfigPersisterNotificationHandler.java:53)
at org.opendaylight.controller.netconf.persist.impl.ConfigPersisterNotificationHandler.<init>(ConfigPersisterNotificationHandler.java:44)
at org.opendaylight.controller.netconf.persist.impl.osgi.ConfigPersisterActivator$1$1.run(ConfigPersisterActivator.java:76)
at java.lang.Thread.run(Thread.java:744)
Caused by: javax.management.InstanceNotFoundException: org.opendaylight.controller:type=NetconfNotificationProvider
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.addNotificationListener(DefaultMBeanServerInterceptor.java:1185)
at com.sun.jmx.mbeanserver.JmxMBeanServer.addNotificationListener(JmxMBeanServer.java:839)
at org.opendaylight.controller.netconf.persist.impl.ConfigPersisterNotificationHandler.registerAsJMXListener(ConfigPersisterNotificationHandler.java:51)
... 3 more



 Comments   
Comment by Tomas Olvecky [ 10/Apr/14 ]

https://git.opendaylight.org/gerrit/6026

Generated at Wed Feb 07 19:52:41 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.