From: Robert Varga Date: Wed, 19 Apr 2017 15:13:58 +0000 (+0200) Subject: BUG-5280: fix snapshot accounting X-Git-Tag: release/nitrogen~328 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=c43554ce37301ff2c5bf76ca5bbd3f2ce87f8009 BUG-5280: fix snapshot accounting The following warning is emitted under testing: 2017-04-19 08:49:34,707 | WARN | ... | AbstractClientHistory | ... | Could not find aborting transaction member-2-datastore-operational-fe-0-txn-19-0 Which is indicating that we cannot find the open transaction inside AbstractClientHistory. The problem is mis-routed invocation when we are taking a snapshot: instead of going directy to subclass doCreateSnapshot() which only allocates the transaction, invoke takeSnapshot(), which actually does the appropriate book-keeping. Change-Id: I07473f381d3147a7fc7d355afede254a781a3094 Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/AbstractDataStoreClientBehavior.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/AbstractDataStoreClientBehavior.java index ef5590fe84..bc7eca75b8 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/AbstractDataStoreClientBehavior.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/AbstractDataStoreClientBehavior.java @@ -207,7 +207,7 @@ abstract class AbstractDataStoreClientBehavior extends ClientActorBehavior