Fix infinite loop on cancel transaction 77/68077/1
authorJaime Caamaño Ruiz <jcaamano@suse.com>
Thu, 1 Feb 2018 09:02:46 +0000 (10:02 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 8 Feb 2018 21:39:35 +0000 (21:39 +0000)
commit66b1f42b3565fe1b2b457ca16531f382b8f66b53
tree0f5cb1e0a5242bdc7f15e6c7c393720b833cd6a6
parentdb09174abf08310c2d21d824821bb610cd2ae8df
Fix infinite loop on cancel transaction

This patch fixes a problem where you would run into an infinite loop
after cancelling DOMForwardedWriteTransaction following an exception
thrown by the backed transaction ready or submit methods.

Change-Id: I24ce3706dcc52e35890246b4796090cd6b1c99b9
JIRA: CONTROLLER-1812
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
(cherry picked from commit 7ab6f974861e01daa16ff56658eeb1be163cbfec)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/AbstractDOMBrokerWriteTransaction.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/AbstractDOMBrokerWriteTransactionTest.java [new file with mode: 0644]
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMForwardedWriteTransaction.java
opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMForwardedWriteTransactionTest.java [new file with mode: 0644]