kaijchen commented on code in PR #807:
URL: https://github.com/apache/ratis/pull/807#discussion_r1073034716


##########
ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java:
##########
@@ -1167,6 +1180,75 @@ public void onAppendEntriesReply(LogAppender appender, 
RaftProtos.AppendEntriesR
     readIndexHeartbeats.onAppendEntriesReply(appender, reply, 
this::hasMajority);
   }
 
+  @Override
+  public void onTransferLeadership(RaftPeerId transferee) {

Review Comment:
   The current `LeaderState#sendStartLeaderElectionToHigherPriorityPeer()` is 
actually `sendTimeoutNow()`.
   However, I think it should be refactored in another PR.



-- 
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]

Reply via email to