Elia-Renzoni commented on code in PR #1586:
URL: https://github.com/apache/ratis/pull/1586#discussion_r4156032028
##########
ratis-server/src/main/java/org/apache/ratis/server/impl/TransferLeadership.java:
##########
@@ -164,12 +166,16 @@ public String toString() {
private final RaftServerImpl server;
private final TimeDuration requestTimeout;
private final TimeoutExecutor scheduler = TimeoutExecutor.getInstance();
+ private final long appliedIndexThreshold;
private final AtomicReference<PendingRequest> pending = new
AtomicReference<>();
TransferLeadership(RaftServerImpl server, RaftProperties properties) {
this.server = server;
this.requestTimeout = RaftServerConfigKeys.Rpc.requestTimeout(properties);
+ this.appliedIndexThreshold = RaftServerConfigKeys
+ .LeaderElection
+
.transferLeadershipRequiredAppliedIndexGap(properties);
Review Comment:
Fixed here: 110c11ab35d96ecdd87c967e0fac998b14aa9925
##########
ratis-server/src/main/java/org/apache/ratis/server/leader/LogAppenderDefault.java:
##########
@@ -204,6 +205,7 @@ void handleReply(AppendEntriesReplyProto reply, long
requestFirstIndex,
+ ", reply=" +
ServerStringUtils.toAppendEntriesReplyString(reply));
}
+ getFollower().updateAppliedIndex(followerAppliedIndex);
Review Comment:
Fixed here: 110c11ab35d96ecdd87c967e0fac998b14aa9925
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]