activemq-artemis git commit: NO-JIRA Using interrupts on ThreadRuleCheck

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

activemq-artemis git commit: NO-JIRA Using interrupts on ThreadRuleCheck

clebertsuconic-2
Repository: activemq-artemis
Updated Branches:
  refs/heads/master ea5967b09 -> b0c83073e


NO-JIRA Using interrupts on ThreadRuleCheck

This would speedup cleanup of eventual executors and stuff like that


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/b0c83073
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/b0c83073
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/b0c83073

Branch: refs/heads/master
Commit: b0c83073e25c7a45a160888df94070ab9f8788d6
Parents: ea5967b
Author: Clebert Suconic <[hidden email]>
Authored: Fri Nov 3 11:32:40 2017 -0400
Committer: Clebert Suconic <[hidden email]>
Committed: Fri Nov 3 16:03:36 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b0c83073/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java
index 80dfb01..85af09d 100644
--- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java
+++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java
@@ -182,6 +182,7 @@ public class ThreadLeakCheckRule extends ExternalResource {
                for (StackTraceElement el : elements) {
                   System.out.println(el);
                }
+               aliveThread.interrupt();
             }
 
          }