Add debug to pinpoint lastApplied movement 96/62096/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Aug 2017 16:35:20 +0000 (18:35 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Aug 2017 16:35:55 +0000 (18:35 +0200)
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 5b130db21046bb6d5d7c28f30cdaa57c9303f969..d0b7c48cef3bd116c97714a29e6870984d60b1e1 100644 (file)
@@ -183,6 +183,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;
     }