ConcurrentDOMDataBroker LOG debug instead of error 62/66362/1
authorMichael Vorburger <vorburger@redhat.com>
Mon, 11 Dec 2017 22:24:39 +0000 (23:24 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 11 Dec 2017 22:24:39 +0000 (23:24 +0100)
for "Tx: {} Error during phase {}, starting Abort"

see CONTROLLER-1802 and NETVIRT-916 for the full background story to
why this will help reduce confusion when we analyze logs.

Change-Id: I7f791bc92d3c22d96462381d6b966755134647d4
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/ConcurrentDOMDataBroker.java

index 6df71974f79a2ebfe6134f117fe93832fdd1bbe3..b80a6050fc958da681cad6cef79bbc557b22c822 100644 (file)
@@ -204,7 +204,8 @@ public class ConcurrentDOMDataBroker extends AbstractDOMBroker {
             return;
         }
 
-        LOG.warn("Tx: {} Error during phase {}, starting Abort", transaction.getIdentifier(), phase, throwable);
+        // Use debug instead of warn level here because this exception gets propagate back to the caller via the Future
+        LOG.debug("Tx: {} Error during phase {}, starting Abort", transaction.getIdentifier(), phase, throwable);
 
         // Transaction failed - tell all cohorts to abort.
         @SuppressWarnings("unchecked")