BUG-5280: TransactionAbortRequest is used for user aborts 30/48830/2
authorRobert Varga <rovarga@cisco.com>
Wed, 30 Nov 2016 14:24:51 +0000 (15:24 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 30 Nov 2016 15:22:01 +0000 (16:22 +0100)
commit8fdce17243f8d71a053704e93cd5fe43fefc1038
treed924539547250a67ca00deb909c2ac85208de316
parent4258ff0d490fc27658ab53dd71bf96c7aa981b13
BUG-5280: TransactionAbortRequest is used for user aborts

TransactionAbortRequest is used to indicate both user abort
and 3PC abort, whereas current backend code assumed it is
only used for 3PC -- hence it required a cohort to be present.

Teach handleTransactionAbort to use a direct transaction abort
if it receives a request without having a cohort present.

Change-Id: Ia469d907edb575d5f1ee5e4f630fe1a19204032f
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/FrontendTransaction.java