sanpwc commented on code in PR #3467:
URL: https://github.com/apache/ignite-3/pull/3467#discussion_r1544179753
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/Replica.java:
##########
@@ -196,7 +221,8 @@ private CompletableFuture<LeaseGrantedMessageResponse>
processLeaseGrantedMessag
// Replica must wait till storage index reaches the current
leader's index to make sure that all updates made on the
// group leader are received.
- return
waitForActualState(msg.leaseExpirationTime().getPhysical())
+ return
sendPrimaryReplicaChangeToReplicationGroup(msg.leaseStartTime().longValue())
+ .thenCompose(v ->
waitForActualState(msg.leaseExpirationTime().getPhysical()))
Review Comment:
I believe yes. waitForActual state may took a while or constantly fail.
Basically there's no need in optimistic in-raft-primary-is-about-to-elected
broadcast, let's do it on state readiness.
--
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]