ConcurrentDOMDataBroker LOG debug instead of error 80/68080/2
authorMichael Vorburger <vorburger@redhat.com>
Mon, 11 Dec 2017 22:24:39 +0000 (23:24 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 9 Feb 2018 00:19:16 +0000 (00:19 +0000)
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>
(cherry picked from commit 1c717bbf117d3486196a0fdd73ac650721f9c557)

opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/ConcurrentDOMDataBroker.java

index 71cd2dc7fe2df10fa9b7f3a6e4ea037ea419f217..17e0c2a4a243dc0e5edf89d27279952ad7be1dd1 100644 (file)
@@ -209,7 +209,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")