rpuch commented on code in PR #4658:
URL: https://github.com/apache/ignite-3/pull/4658#discussion_r1822806824


##########
modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteServerImpl.java:
##########
@@ -119,6 +119,14 @@ public class IgniteServerImpl implements IgniteServer {
     @Nullable
     private CompletableFuture<Void> restartOrShutdownFuture;
 
+    /**
+     * Future of the last internal restart future ({@code null} if no internal 
restarts where made).
+     *
+     * <p>Guarded by {@link #restartOrShutdownMutex}.
+     */
+    @Nullable
+    private CompletableFuture<Void> restartFuture;

Review Comment:
   In tests, we need to wait till restart gets initiated and then for it to 
finish. Currently, this is implemented by returning `null` to signal that no 
restart was initiated yet and the future when it is initiated



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