AbstractNormalizedNodeDataOutput fails to write out header 24/84324/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Sep 2019 14:06:59 +0000 (16:06 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Sep 2019 15:12:14 +0000 (17:12 +0200)
commit42b82f3d3e936b78f66301bdc08f6b744bcc740b
tree89321f3e54ab691bcdbc9d2c083bd671270ad37c
parent77e52504cf30dd68a27273d5088427f43b0eda03
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>
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