Bug 9008: Fix the error of the persisted journal data format 67/61967/3
authorHeYunBo <he.yunbo@zte.com.cn>
Fri, 18 Aug 2017 12:31:39 +0000 (20:31 +0800)
committerRobert Varga <nite@hq.sk>
Fri, 1 Sep 2017 06:29:18 +0000 (06:29 +0000)
commit0077859d16ed922af1449f075033069f4d9dbffe
treec4243328e7aea1a6eb0147cdcf6bd2b5f9febe25
parent795e380514b94ed1d8ded99ac8e8621b636b5b38
Bug 9008: Fix the error of the persisted journal data format

We have to clear the lastLeafSetQName while processing the end event for node
in NormalizedNodeInputStreamReader and AbstractNormalizedNodeDataOutput.

Otherwise while processing the leaf-list node, the leaf-list entry node
may use the other LeafSetQName as it's node identifier incorrectly.
The DataTree reconstructed from the persisted journal after the controller
restart will be not equal to the DataTree before restart under certain
circumstances.

Change-Id: I4ee823f59fe477d08f982ae73e3850433dfea8ee
Signed-off-by: HeYunBo <he.yunbo@zte.com.cn>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/AbstractNormalizedNodeDataOutput.java [changed mode: 0644->0755]
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java [changed mode: 0644->0755]