tisonkun commented on code in PR #906:
URL: https://github.com/apache/ratis/pull/906#discussion_r1334910709


##########
ratis-server-api/src/main/java/org/apache/ratis/statemachine/StateMachine.java:
##########
@@ -228,6 +228,11 @@ default void notifyFollowerSlowness(RoleInfoProto 
leaderInfo) {}
      * Notify {@link StateMachine} that this server is no longer the leader.
      */
     default void notifyNotLeader(Collection<TransactionContext> 
pendingEntries) throws IOException {}
+
+    /**
+     * Notify the {@link StateMachine} that this server becomes ready after 
changed to leader.
+     */
+    default void notifyLeaderReady() {}

Review Comment:
   This method name can be a bit misleading -
   
   * What I read: a leader is ready for this group.
   * What it actually means: this server is reader after changed to leader.



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