NormalizedNodeAggregator should also report empty 53/100453/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Apr 2022 20:23:33 +0000 (22:23 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 8 Apr 2022 02:33:36 +0000 (02:33 +0000)
commit73be00d536018b8ff1209fac831bdba0d5268f3b
tree8497d9e3274827b1c71061e287adbe0046284522
parentdcdd94d82922f437e84232953564711c2025d30a
NormalizedNodeAggregator should also report empty

DataTree root is always present as of now, which means that even if we
pretend there is no result, the result of aggregation is non-empty.

Fix NormalizedNodeAggregator to check whether there was any operation
applied before running actual transaction.

JIRA: CONTROLLER-2038
Change-Id: Ie7e4625ad2377483d0623d96234bcc77fbba033d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 1d5ca4009be6c61d7b61989799037ad8f1ab7a75)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregator.java