You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2017/10/09 18:32:56 UTC

[2/4] activemq-artemis git commit: NO-JIRA: Speed up cleanupThreads for testsuite

NO-JIRA: Speed up cleanupThreads for testsuite


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

Branch: refs/heads/master
Commit: 484e9396981a5f56ef8a79ddda826f07a46a78fc
Parents: 87dab34
Author: Clebert Suconic <cl...@apache.org>
Authored: Mon Oct 9 10:14:30 2017 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Mon Oct 9 14:32:03 2017 -0400

----------------------------------------------------------------------
 .../apache/activemq/artemis/api/core/client/ActiveMQClient.java  | 4 ++--
 .../activemq/artemis/core/remoting/impl/invm/InVMConnector.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/484e9396/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
index caa2a39..cb10768 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
@@ -163,7 +163,7 @@ public final class ActiveMQClient {
       }
 
       if (globalThreadPool != null) {
-         globalThreadPool.shutdown();
+         globalThreadPool.shutdownNow();
          try {
             if (!globalThreadPool.awaitTermination(time, unit)) {
                globalThreadPool.shutdownNow();
@@ -177,7 +177,7 @@ public final class ActiveMQClient {
       }
 
       if (globalScheduledThreadPool != null) {
-         globalScheduledThreadPool.shutdown();
+         globalScheduledThreadPool.shutdownNow();
          try {
             if (!globalScheduledThreadPool.awaitTermination(time, unit)) {
                globalScheduledThreadPool.shutdownNow();

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/484e9396/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
index d3ac0fd..c84020c 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
@@ -101,7 +101,7 @@ public class InVMConnector extends AbstractConnector {
 
    public static synchronized void resetThreadPool() {
       if (threadPoolExecutor != null) {
-         threadPoolExecutor.shutdown();
+         threadPoolExecutor.shutdownNow();
          threadPoolExecutor = null;
       }
    }