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


##########
ratis-server-api/src/main/java/org/apache/ratis/statemachine/StateMachine.java:
##########
@@ -150,6 +150,13 @@ interface EventApi {
      */
     default void notifyLeaderChanged(RaftGroupMemberId groupMemberId, 
RaftPeerId newLeaderId) {}
 
+    /**
+     * Notify the {@link StateMachine} that current node has become the leader 
and recovered successfully.
+     * Note that only leader will call this function.
+     *
+     */
+    default void notifyLeaderReady() {}

Review Comment:
   A more reasonable idea!



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