Bug 1386: Avoid commit deadlock 10/9210/10
authortpantelis <tpanteli@brocade.com>
Mon, 14 Jul 2014 12:01:16 +0000 (08:01 -0400)
committertpantelis <tpanteli@brocade.com>
Wed, 6 Aug 2014 03:11:28 +0000 (23:11 -0400)
commitbdcae2ee743f5474c936c9773eaf9af9fd1ec1bd
tree4846b7e7274dc2732eeb6ce96b016bba049cac8c
parent1bf9f8c060f6adf32f527f6efe82f78f774ffd8d
Bug 1386: Avoid commit deadlock

Changed the executor in DOMDataCommitCoordinatorImpl to a new
class DeadlockDetectingListeningExecutorService added to yangtools util.
This detects deadlock if another blocking commit is done by a client
notified from the single commit thread.

Change-Id: Icdc2b835fd336a1bbc37953828126b57253929c0
Signed-off-by: tpantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/TransactionCommitDeadlockException.java [new file with mode: 0644]
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/config/yang/md/sal/dom/impl/DomInmemoryDataBrokerModule.java
opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMBrokerTest.java
opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/store/impl/TestModel.java
opendaylight/md-sal/sal-dom-broker/src/test/resources/odl-datastore-test.yang