Fix SnapshotBackedWriteTransaction error message 87/89987/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 May 2020 11:15:42 +0000 (13:15 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 28 May 2020 12:13:04 +0000 (12:13 +0000)
The message is misleading, as we are not performing a write, but
a merge operation.

Change-Id: I8b61ac7b0bf5f3ae746a2b6c1883a02e6fe61e47
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit fb0a271c02454f11cd3c64130513dfb7caf3f386)

dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/store/SnapshotBackedWriteTransaction.java

index 926c74618eae49936b30e70b9b58b669f43bca7b..99f60497d81d0469b84150b1bafff614508f5ae4 100644 (file)
@@ -92,7 +92,7 @@ public class SnapshotBackedWriteTransaction<T> extends AbstractDOMStoreTransacti
             tree.merge(path, data);
             // FIXME: Add checked exception
         } catch (Exception e) {
-            LOG.error("Tx: {}, failed to write {}:{} in {}", getIdentifier(), path, data, tree, e);
+            LOG.error("Tx: {}, failed to merge {}:{} in {}", getIdentifier(), path, data, tree, e);
             // Rethrow original ones if they are subclasses of RuntimeException or Error
             Throwables.throwIfUnchecked(e);
             // FIXME: Introduce proper checked exception