Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Optimizations, Monitoring and Logging
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
behaviors
/
AbstractRaftActorBehavior.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractRaftActorBehavior.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractRaftActorBehavior.java
index 707c5321f5e23aef38f9ae4768ee42a19fde86c2..251a13d583ec444ac4ca0c1cc028831feeb48958 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractRaftActorBehavior.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractRaftActorBehavior.java
@@
-127,6
+127,9
@@
public abstract class AbstractRaftActorBehavior implements RaftActorBehavior {
protected RaftState requestVote(ActorRef sender,
RequestVote requestVote) {
protected RaftState requestVote(ActorRef sender,
RequestVote requestVote) {
+
+ context.getLogger().debug(requestVote.toString());
+
boolean grantVote = false;
// Reply false if term < currentTerm (§5.1)
boolean grantVote = false;
// Reply false if term < currentTerm (§5.1)
@@
-326,7
+329,7
@@
public abstract class AbstractRaftActorBehavior implements RaftActorBehavior {
}
// Send a local message to the local RaftActor (it's derived class to be
// specific to apply the log to it's index)
}
// Send a local message to the local RaftActor (it's derived class to be
// specific to apply the log to it's index)
- context.getLogger().
info
("Setting last applied to {}", index);
+ context.getLogger().
debug
("Setting last applied to {}", index);
context.setLastApplied(index);
}
context.setLastApplied(index);
}