BUG 2792 : ThreePhaseCommitCohortProxy should serialize CanCommit 39/17139/3
authorMoiz Raja <moraja@cisco.com>
Thu, 26 Mar 2015 00:43:36 +0000 (17:43 -0700)
committerMoiz Raja <moraja@cisco.com>
Fri, 27 Mar 2015 10:06:37 +0000 (03:06 -0700)
commit81f37aec697cd23d8a70cf1ad5dcb388e10a2093
tree367833cb85c52aea48d03def0f7e1db5dbd8ed4b
parent4d432d257cd02eedeca388d150fa95fa49da62c5
BUG 2792 : ThreePhaseCommitCohortProxy should serialize CanCommit

Besides the front-end ConcurrentDOMDataBroker the ThreePhaseCommitCohortProxy
also sends CanCommitTransaction to different Shards. This can also cause us
to get into the deadlock situation described in the bug and so we serialize the
can commits.

Change-Id: Iad527ce812f0b285cf41ce29abab30ec0f975aa1
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxyTest.java