AbstractNormalizedNodeDataOutput fails to write out header 72/84672/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Sep 2019 14:06:59 +0000 (16:06 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 24 Sep 2019 05:18:09 +0000 (07:18 +0200)
commit9bf0909262e16b2858ab0b3e63f870d0da7abb70
treedd4462f943ff319bbc19c1c8ed2a6b593d77106e
parentd31259338936cad0a57c5c1a2b7a85c4fc4a9493
AbstractNormalizedNodeDataOutput fails to write out header

In case AbstractNormalizedNodeDataOutput is used in a way, where
NormalizedNodeDataOutput.writePathArgument() is the first method
invoked, the stream header would not be output, leading to it
being unreadable.

Change-Id: I4ababb360129b2ef673d0546333599dd10fbdd9e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 42b82f3d3e936b78f66301bdc08f6b744bcc740b)
(cherry picked from commit 239cc7b98995c323881d0014a5d01d51a665aed8)
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/AbstractNormalizedNodeDataOutput.java
opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeStreamReaderWriterTest.java