From ce97e7faf868c1a2a3b7bb243dbf859cc8af7095 Mon Sep 17 00:00:00 2001 From: Thomas Lavocat Date: Thu, 2 Jul 2026 10:32:00 +0200 Subject: [PATCH] ARTEMIS-6141 Fix non-portable kill -SIGINT LargeMessageInterruptTest.killProcess() relies on Runtime.exec("kill -SIGINT ...") to send a graceful shutdown signal. The -SIGINT flag is a non-standard signal specification that some kill implementations silently ignore while reporting success (exit code 0), causing the broker process to stay alive and the test to time out. Observed on Fedora 43 where /usr/bin/kill does not handle -SIGINT. Replace with Process.destroy() which sends SIGTERM directly via JVM syscall, with no dependency on external binaries or their flag parsing behavior. Assisted-by: Cursor --- .../tests/soak/interruptlm/LargeMessageInterruptTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageInterruptTest.java b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageInterruptTest.java index 63ec63e63e4..544265053bb 100644 --- a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageInterruptTest.java +++ b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/interruptlm/LargeMessageInterruptTest.java @@ -86,7 +86,7 @@ public void before() throws Exception { } private void killProcess(Process process) throws Exception { - Runtime.getRuntime().exec("kill -SIGINT " + process.pid()); + process.destroy(); } @Test