Add case for READY in RemoteProxyTransaction 12/53712/4
authorAndrej Mak <andrej.mak@pantheon.tech>
Thu, 23 Mar 2017 10:01:47 +0000 (11:01 +0100)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 24 Mar 2017 11:14:56 +0000 (11:14 +0000)
Handling forwarded ModifyTransactionRequest with ready
protocol shouldn't cause failure, so add no op case.

Change-Id: Id8d69b49171588323ccd947b53f16576f57cb156
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/RemoteProxyTransaction.java

index b8afb0e90d0f6934bff0f1d31980bad5b627256b..e91bd6c8b031f935a08749272286ac565602d95c 100644 (file)
@@ -311,6 +311,9 @@ final class RemoteProxyTransaction extends AbstractProxyTransaction {
                     case THREE_PHASE:
                         sendRequest(commitRequest(true), callback);
                         break;
                     case THREE_PHASE:
                         sendRequest(commitRequest(true), callback);
                         break;
+                    case READY:
+                        //no op
+                        break;
                     default:
                         throw new IllegalArgumentException("Unhandled protocol " + maybeProto.get());
                 }
                     default:
                         throw new IllegalArgumentException("Unhandled protocol " + maybeProto.get());
                 }