Fix read-only abort message mismatch 64/56064/5
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 26 Apr 2017 12:39:23 +0000 (14:39 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 28 Apr 2017 12:38:00 +0000 (12:38 +0000)
commitda06e5075869af81d46b861691f2e95d22a96bbc
tree187408d0ae55788eb9304b715e58fa0d77f2b5fa
parentcd6996f873c6d98b642a0f6f725babed67e211f1
Fix read-only abort message mismatch

Testing has revealed:

WARN  | FrontendReadOnlyTransaction | Rejecting unsupported request ModifyTransactionRequest{target=member-2-datastore-config-fe-0-txn-2-0, sequence=1, replyTo=Actor[akka.tcp://opendaylight-cluster-data@10.29.15.184:2550/user/$a#585956314], operations=[], protocol=ABORT}

This is a thinko on the part of which message does what:

TransactionAbortRequest is dedicated for 3PC doAbort phase, hence
it is never seen for read-only transactions.

The message corresponding to an abort is either
AbortLocalTransactionRequest or ModifyTransactionRequest with protocol
set to ABORT.

Change-Id: I3238ade7b9f7933e6538742354888d182f599412
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/FrontendReadOnlyTransaction.java