From: Robert Varga Date: Tue, 27 Jan 2015 17:15:20 +0000 (+0100) Subject: Make sure write transaction cancellation is propagated X-Git-Tag: release/lithium~634^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=dc6411a0bcb72c56d6ae894c71105b43ff5dff26;p=controller.git Make sure write transaction cancellation is propagated 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 --- diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMForwardedWriteTransaction.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMForwardedWriteTransaction.java index 45e18ff219..bc11f122e6 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMForwardedWriteTransaction.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMForwardedWriteTransaction.java @@ -108,6 +108,7 @@ class DOMForwardedWriteTransaction extends if (impl != null) { LOG.trace("Transaction {} cancelled before submit", getIdentifier()); FUTURE_UPDATER.lazySet(this, CANCELLED_FUTURE); + closeSubtransactions(); return true; }