sanpwc commented on code in PR #4043:
URL: https://github.com/apache/ignite-3/pull/4043#discussion_r1670268247


##########
modules/partition-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/PartitionReplicaLifecycleManager.java:
##########
@@ -192,6 +202,18 @@ public CompletableFuture<Void> startAsync(ComponentContext 
componentContext) {
             return nullCompletedFuture();
         }
 
+        CompletableFuture<Long> recoveryFinishFuture = 
metaStorageMgr.recoveryFinishedFuture();
+
+        assert recoveryFinishFuture.isDone();
+
+        long recoveryRevision = recoveryFinishFuture.join();
+
+        cleanUpResourcesForDroppedZonesOnRecovery();
+
+        CompletableFuture<Void> processZonesOnStart = 
processZonesOnStart(recoveryRevision, lowWatermark.getLowWatermark());
+
+        CompletableFuture<Void> processAssignmentsFuture = 
processAssignmentsOnRecovery(recoveryRevision);

Review Comment:
   Chaining added.
   `        CompletableFuture<Void> processZonesAndAssignmentsOnStart = 
processZonesOnStart(recoveryRevision, lowWatermark.getLowWatermark())
                   .thenCompose(ignored -> 
processAssignmentsOnRecovery(recoveryRevision));`



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to