BUG 8629: log inconsistent notifications as warn 76/58776/2
authorTomas Cere <tcere@cisco.com>
Thu, 8 Jun 2017 12:00:02 +0000 (14:00 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 13 Jun 2017 08:39:02 +0000 (08:39 +0000)
Change-Id: I872fced1ecc913e521ddf7c0d4acee7f48b04cb1
Signed-off-by: Tomas Cere <tcere@cisco.com>
(cherry picked from commit 2c510d40d2813e5f65f755e53e5ef570b2ac5fba)

opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/IdIntsDOMDataTreeLIstener.java
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/IdIntsListener.java

index 4e1291e1ddf85628f5649e1361e7ce0c32d17fb8..fd5e893cd7189233457cf6a1b213fed2bdfee52e 100644 (file)
@@ -46,7 +46,8 @@ public class IdIntsDOMDataTreeLIstener implements DOMDataTreeListener {
                 if (localCopy == null || checkEqual(change.getRootNode().getDataBefore().get())) {
                     localCopy = change.getRootNode().getDataAfter().get();
                 } else {
-                    LOG.debug("Ignoring notification: {}", change);
+                    LOG.warn("Ignoring notification.");
+                    LOG.trace("Ignored notification content: {}", change);
                 }
             } else {
                 LOG.warn("getDataAfter() is missing from notification. change: {}", change);
index 237409c9caba5ded5d0f16fa68f80bba787b603b..445b22c7e7f624a40309347699fe3acc08191698 100644 (file)
@@ -42,7 +42,8 @@ public class IdIntsListener implements ClusteredDOMDataTreeChangeListener {
                 if (localCopy == null || checkEqual(change.getRootNode().getDataBefore().get())) {
                     localCopy = change.getRootNode().getDataAfter().get();
                 } else {
-                    LOG.debug("Ignoring notification: {}", change);
+                    LOG.warn("Ignoring notification.");
+                    LOG.trace("Ignored notification content: {}", change);
                 }
             } else {
                 LOG.warn("getDataAfter() is missing from notification. change: {}", change);