This is an automated email from the ASF dual-hosted git repository.

lizhanhui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 1970813  Shutdown all started executors of broker
1970813 is described below

commit 1970813ceb0dab2e96d26cef75666bd71bb89ca8
Author: Li Zhanhui <[email protected]>
AuthorDate: Wed Jun 6 10:44:02 2018 +0800

    Shutdown all started executors of broker
---
 .../org/apache/rocketmq/broker/BrokerController.java     | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git 
a/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java 
b/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
index a4968cb..293e51e 100644
--- a/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
+++ b/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
@@ -682,6 +682,22 @@ public class BrokerController {
         if (this.consumerFilterManager != null) {
             this.consumerFilterManager.persist();
         }
+
+        if (this.clientManageExecutor != null) {
+            this.clientManageExecutor.shutdown();
+        }
+
+        if (this.queryMessageExecutor != null) {
+            this.queryMessageExecutor.shutdown();
+        }
+
+        if (this.consumerManageExecutor != null) {
+            this.consumerManageExecutor.shutdown();
+        }
+
+        if (this.fileWatchService != null) {
+            this.fileWatchService.shutdown();
+        }
     }
 
     private void unregisterBrokerAll() {

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to