Make sure write transaction cancellation is propagated 48/14548/2
authorRobert Varga <rovarga@cisco.com>
Tue, 27 Jan 2015 17:15:20 +0000 (18:15 +0100)
committerRobert Varga <nite@hq.sk>
Tue, 27 Jan 2015 17:24:35 +0000 (17:24 +0000)
DOMForwardedWriteTransaction needs to notify subtransactions about
cancellation, as otherwise they will remain logically open and
potentially lost.

Change-Id: I15d926979fe181c60de65f44102b75513fd22dfc
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMForwardedWriteTransaction.java

index 45e18ff2199838c2b9896bd4ef9663e07bafdcb1..bc11f122e63e4fd1c79435d5e6d2ba8460ee8a3e 100644 (file)
@@ -108,6 +108,7 @@ class DOMForwardedWriteTransaction<T extends DOMStoreWriteTransaction> extends
         if (impl != null) {
             LOG.trace("Transaction {} cancelled before submit", getIdentifier());
             FUTURE_UPDATER.lazySet(this, CANCELLED_FUTURE);
+            closeSubtransactions();
             return true;
         }