apupier commented on code in PR #18682:
URL: https://github.com/apache/camel/pull/18682#discussion_r2222433197
##########
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:
when launching camel-core test locally, on one attempt, it seems I entered a
loop, there are 512 ForkedJoinPool-1-worker-xxx threads
it is blocked on this test, weel it is the last line writtein the log:
[[1;34mINFO[m] [1;32mTests run: [0;1;32m20[m, Failures: 0, Errors: 0,
Skipped: 0, Time elapsed: 54.48 s -- in
org.apache.camel.support.cache.[1mSimpleSoftCacheTest
I'm wondering if it can be caused by this piece of code
--
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]