Add debug to pinpoint lastApplied movement 21/62221/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Aug 2017 16:35:20 +0000 (18:35 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 24 Aug 2017 08:32:08 +0000 (08:32 +0000)
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 <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContextImpl.java

index 4fd5666ae207a77143f5fc3808c04d8e4417db34..4644a2d79807bf36d069fa010ce561e0232cbcf9 100644 (file)
@@ -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;
     }