Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Tune replication and stabilize tests
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
behaviors
/
Leader.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/Leader.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/Leader.java
index 53e47c2f842f17ac0b2766811745a7f1ec6eabde..a50666233c31f30b2e94cbf4c49d53a95cca93f4 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/Leader.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/Leader.java
@@
-112,8
+112,8
@@
public class Leader extends AbstractRaftActorBehavior {
scheduleHeartBeat(new FiniteDuration(0, TimeUnit.SECONDS));
scheduleInstallSnapshotCheck(
scheduleHeartBeat(new FiniteDuration(0, TimeUnit.SECONDS));
scheduleInstallSnapshotCheck(
- new FiniteDuration(
HEART_BEAT_INTERVAL
.length() * 1000,
-
HEART_BEAT_INTERVAL
.unit())
+ new FiniteDuration(
context.getConfigParams().getHeartBeatInterval()
.length() * 1000,
+
context.getConfigParams().getHeartBeatInterval()
.unit())
);
}
);
}
@@
-241,7
+241,7
@@
public class Leader extends AbstractRaftActorBehavior {
(InstallSnapshotReply) message);
}
} finally {
(InstallSnapshotReply) message);
}
} finally {
- scheduleHeartBeat(
HEART_BEAT_INTERVAL
);
+ scheduleHeartBeat(
context.getConfigParams().getHeartBeatInterval()
);
}
return super.handleMessage(sender, message);
}
return super.handleMessage(sender, message);
@@
-310,7
+310,7
@@
public class Leader extends AbstractRaftActorBehavior {
// that has fallen too far behind with the log but yet is not
// eligible to receive a snapshot
entries =
// that has fallen too far behind with the log but yet is not
// eligible to receive a snapshot
entries =
- context.getReplicatedLog().getFrom(nextIndex);
+ context.getReplicatedLog().getFrom(nextIndex
, 1
);
}
followerActor.tell(
}
followerActor.tell(