BUG 2317 : StatisticsManager does not unregister from yang notifications on close 86/12586/1
authorMoiz Raja <moraja@cisco.com>
Thu, 6 Nov 2014 22:44:40 +0000 (14:44 -0800)
committerMoiz Raja <moraja@cisco.com>
Thu, 6 Nov 2014 23:17:34 +0000 (23:17 +0000)
Change-Id: I9506fda6f3068d1ed047177009542a240f7c0bb4
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/impl/StatAbstractListenCommit.java
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/impl/StatisticsManagerImpl.java

index 6db73d5..10bfcba 100644 (file)
@@ -123,6 +123,8 @@ public abstract class StatAbstractListenCommit<T extends DataObject, N extends N
             }
             listenerRegistration = null;
         }
+
+        super.close();
     }
 
     protected final <K extends DataObject> Optional<K> readLatestConfiguration(final InstanceIdentifier<K> path) {
index 0f8030f..ca0e5b2 100644 (file)
@@ -124,6 +124,7 @@ public class StatisticsManagerImpl implements StatisticsManager, Runnable {
 
    @Override
    public void close() throws Exception {
+       LOG.info("StatisticsManager close called");
        finishing = true;
        if (nodeRegistrator != null) {
            nodeRegistrator.close();