BUG 3200 : Serialize a child node even when it is UNMODIFIED 10/20310/1
authorMoiz Raja <moraja@cisco.com>
Thu, 14 May 2015 00:11:39 +0000 (17:11 -0700)
committerMoiz Raja <moraja@cisco.com>
Thu, 14 May 2015 00:11:39 +0000 (17:11 -0700)
Change-Id: If1220cd2a84d770ca02bca6a5f070032188b5e21
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataTreeCandidatePayload.java

index 54167b2011d0585645f2633e6169ab1ebde8cbc1..c77aef938ec3c60adb3d21f02159cbcc59829a0b 100644 (file)
@@ -78,7 +78,8 @@ final class DataTreeCandidatePayload extends Payload implements Externalizable {
             writer.writeNormalizedNode(node.getDataAfter().get());
             break;
         case UNMODIFIED:
-            throw new IllegalArgumentException("Unmodified candidate should never be in the payload");
+            out.writeByte(UNMODIFIED);
+            break;
         default:
             throw new IllegalArgumentException("Unhandled node type " + node.getModificationType());
         }