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


##########
modules/runner/src/main/java/org/apache/ignite/internal/app/IgnitionImpl.java:
##########
@@ -138,6 +140,24 @@ public void stop(String nodeName) {
         });
     }
 
+    /**
+     * Stops all Ignite instances started in this JVM.
+     */
+    @TestOnly
+    public void stopAll() {
+        List<String> nodeNames = new ArrayList<>(nodes.keySet());
+
+        if (!nodeNames.isEmpty()) {
+            LOG.info("Going to stop the following Ignite instances: " + 
nodeNames);
+
+            for (String nodeName : nodeNames) {
+                stop(nodeName);
+            }
+
+            LOG.info("Stopped the following Ignite instances: " + nodeNames);

Review Comment:
   Stopping of an Ingite instance might hang. It seems helpful to see the 
'Everything is finished' to make sure that nothing has hung.



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