From f2e01000c60e2631dbf1e167de58cc8cbde82947 Mon Sep 17 00:00:00 2001 From: Sai MarapaReddy Date: Thu, 14 Jul 2016 09:50:11 -0700 Subject: [PATCH] Reduce ConflictingVersionException log level to debug In general it happens when there is a ConflictingVersionException, it retries and if it times out while retrying, it will log the error The ConflictingVersionException is similar to the OptimisticLockFailuerEx in the data store, i.e. the current config version is incremented and recorded at the start of a push and if a second config is pushed before the first completes, the version changes and it detects that and re-pushes the first config. The CSS pushes one config at a time but this can happen during dependency resolution if it finds a dependent module that wasn't created yet or its config changed and needs to be dynamically recreated. The dependent module is pushed which results in a conflicting version. This happens with BGP. Signed-off-by: Sai MarapaReddy Author: Sai MarapaReddy Change-Id: Ic1d4639625fa54ccc3d54331a960f421ad6fa1dd --- .../config/facade/xml/transactions/TransactionProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/transactions/TransactionProvider.java b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/transactions/TransactionProvider.java index 716ed79f72..eebc1ba001 100644 --- a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/transactions/TransactionProvider.java +++ b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/transactions/TransactionProvider.java @@ -149,7 +149,7 @@ public class TransactionProvider implements AutoCloseable { LOG.warn("Transaction {} failed on {}", taON, validationException.toString()); throw validationException; } catch (ConflictingVersionException e) { - LOG.error("Exception while commit of {}, aborting transaction", taON, e); + LOG.debug("Exception while commit of {}, aborting transaction", taON, e); // clean up abortTransaction(); throw e; -- 2.36.6