szetszwo commented on code in PR #669:
URL: https://github.com/apache/ratis/pull/669#discussion_r912389894
##########
ratis-server-api/src/main/java/org/apache/ratis/statemachine/StateMachine.java:
##########
@@ -192,6 +192,11 @@ default void notifyLogFailed(Throwable cause,
LogEntryProto failedEntry) {}
* completely done. Could trigger the cleanup of snapshots.
*/
default void notifySnapshotInstalled(InstallSnapshotResult result, long
snapshotIndex) {}
+
+ /**
+ * Notify the {@link StateMachine} that a raft server has step down.
+ */
+ default void notifyServerStepDown() {}
Review Comment:
Let's call it notifyServerShutdown and pass a RoleInfoProto parameter.
--
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]