From: Robert Varga Date: Mon, 21 Aug 2017 16:35:20 +0000 (+0200) Subject: Add debug to pinpoint lastApplied movement X-Git-Tag: release/oxygen~136 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=866cdf141262dd7b57e95b3e3aa75709b7d0c586 Add debug to pinpoint lastApplied movement This method is called from multiple call sites, only one of which is actually logging the change. Make sure we catch all transitions by adding a LOG.debug() into the setter. Change-Id: Ie777f8047a0893f9450fb132faa8adea235fbc5f Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContextImpl.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContextImpl.java index 4fd5666ae2..4644a2d798 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContextImpl.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContextImpl.java @@ -188,6 +188,7 @@ public class RaftActorContextImpl implements RaftActorContext { @Override public void setLastApplied(long lastApplied) { + log.debug("{}: Moving last applied index from {} to {}", id, this.lastApplied, lastApplied); this.lastApplied = lastApplied; }