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 b8afb0e..e91bd6c 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());
                 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.