sanpwc commented on code in PR #2030:
URL: https://github.com/apache/ignite-3/pull/2030#discussion_r1199578952
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/listener/ReplicaListener.java:
##########
@@ -31,4 +33,20 @@ public interface ReplicaListener {
* @return Listener response.
*/
CompletableFuture<?> invoke(ReplicaRequest request);
+
+ /**
+ * Callback on leader election.
+ *
+ * @param clusterNode Leader node.
+ */
+ default void onLeaderElected(ClusterNode clusterNode) {
Review Comment:
We may have leaderless replication protocols. I'd say that we should use
onBecomePrimary instead.
--
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]