sanpwc commented on code in PR #3548:
URL: https://github.com/apache/ignite-3/pull/3548#discussion_r1559570876
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/Replica.java:
##########
@@ -240,6 +247,18 @@ private CompletableFuture<LeaseGrantedMessageResponse>
processLeaseGrantedMessag
}));
}
+ /**
+ * Process {@link WaitReplicaStateMessage}.
+ *
+ * @param msg Message to process.
+ * @return Future that contains a result.
+ */
+ private CompletableFuture<Void>
processWaitReplicaStateMessage(WaitReplicaStateMessage msg) {
+ LOG.info("Received LeaseGrantedMessage for replica belonging to
group=" + groupId());
+
+ return waitForActualState(FastTimestamps.coarseCurrentTimeMillis() +
TimeUnit.SECONDS.toMillis(msg.timeout()));
Review Comment:
It's also required to sendPrimaryReplicaChangeToReplicationGroup after
waitForActualState. Please check `Replica#processLeaseGrantedMessage` for more
details.
--
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]