apupier commented on code in PR #18682:
URL: https://github.com/apache/camel/pull/18682#discussion_r2222610819


##########
tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java:
##########
@@ -560,8 +557,9 @@ private void terminateThreads(ThreadGroup threadGroup) {
                 uncooperativeThreads.add(thread); // ensure we don't process
                 // again
                 if (stopUnresponsiveDaemonThreads) {
-                    getLog().warn("thread " + thread + " will be 
Thread.stop()'ed");
-                    thread.stop();
+                    getLog().warn("thread " + thread + " is unresponsive to 
interruption and will be left to run");
+                    // Try to interrupt again
+                    thread.interrupt();

Review Comment:
   it happened a single time in ten attempts



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