alievmirza commented on code in PR #3492:
URL: https://github.com/apache/ignite-3/pull/3492#discussion_r1541245892


##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaManager.java:
##########
@@ -779,6 +780,18 @@ private void idleSafeTimeSync() {
      * @return True if the replica is started.
      */
     public boolean isReplicaStarted(ReplicationGroupId replicaGrpId) {
+        CompletableFuture<Replica> replicaFuture = replicas.get(replicaGrpId);
+        return replicaFuture != null && isCompletedSuccessfully(replicaFuture);
+    }
+
+    /**
+     * Check if replica was touched by an any actor. Touched here means either 
replica replica creation or replica waiter registration.

Review Comment:
   `replica` is written twice 



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