Skip to content

Commit

Permalink
RATIS-2138 Remove uncessary error log in JVMPauseMonitor When GC is s…
Browse files Browse the repository at this point in the history
…erious (apache#1133)
  • Loading branch information
OneSizeFitsQuorum authored Aug 13, 2024
1 parent 69ec8f4 commit 217fdb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ public AppendEntriesRequestProto newAppendEntriesRequestProto(FollowerInfo follo
List<LogEntryProto> entries, TermIndex previous, long callId) {
final boolean initializing = !isCaughtUp(follower);
final RaftPeerId targetId = follower.getId();
return ServerProtoUtils.toAppendEntriesRequestProto(server.getMemberId(), targetId, currentTerm, entries,
return ServerProtoUtils.toAppendEntriesRequestProto(server.getMemberId(), targetId, getCurrentTerm(), entries,
ServerImplUtils.effectiveCommitIndex(raftLog.getLastCommittedIndex(), previous, entries.size()),
initializing, previous, server.getCommitInfos(), callId);
}
Expand Down Expand Up @@ -700,7 +700,7 @@ private void updateSenders(RaftConfigurationImpl conf) {
}

void submitStepDownEvent(StepDownReason reason) {
submitStepDownEvent(getCurrentTerm(), reason);
submitStepDownEvent(currentTerm, reason);
}

void submitStepDownEvent(long term, StepDownReason reason) {
Expand Down

0 comments on commit 217fdb0

Please sign in to comment.