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

hxd pushed a commit to branch cluster-
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/cluster- by this push:
     new 299345a  fix incorrect modification in IoTDB's shutdown function
299345a is described below

commit 299345a1767cfe6fddd8b5f474255d61a24623b4
Author: xiangdong huang <[email protected]>
AuthorDate: Fri Sep 24 15:25:41 2021 +0800

    fix incorrect modification in IoTDB's shutdown function
---
 server/src/main/java/org/apache/iotdb/db/service/IoTDB.java | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java 
b/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
index c110bc9..dbaba94 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
@@ -192,9 +192,16 @@ public class IoTDB implements IoTDBMBean {
   }
 
   public void shutdown() throws Exception {
-    stop();
-
-    logger.info("IoTDB is shutdown.");
+    //TODO shutdown is not equal to stop()
+    logger.info("Deactivating IoTDB...");
+    if 
(IoTDBDescriptor.getInstance().getConfig().isEnablePerformanceTracing()) {
+      TracingManager.getInstance().close();
+    }
+    registerManager.shutdownAll();
+    PrimitiveArrayManager.close();
+    SystemInfo.getInstance().close();
+    JMXService.deregisterMBean(mbeanName);
+    logger.info("IoTDB is deactivated.");
   }
 
   private void setUncaughtExceptionHandler() {

Reply via email to