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 4fd5666..4644a2d 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;
     }
 

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.