ibessonov commented on code in PR #5010: URL: https://github.com/apache/ignite-3/pull/5010#discussion_r1910390384
########## modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteRunner.java: ########## @@ -68,14 +71,37 @@ public static IgniteServer start(String... args) { * @param args CLI args to start a new node. */ public static void main(String[] args) { + IgniteServer server = start(args); + AtomicBoolean shutdown = new AtomicBoolean(false); + + Handler handler = sig -> { + try { + System.out.println("Ignite node shutting down..."); + shutdown.set(true); + server.shutdown(); + } catch (Throwable t) { + System.out.println("Failed to shutdown: " + t.getMessage()); + + t.printStackTrace(System.out); + } + + //Copy-paste from default JVM signal handler java.lang.Terminator#setup Review Comment: ```suggestion // Copy-paste from default JVM signal handler java.lang.Terminator#setup. ``` -- 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