You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2023/05/17 03:46:54 UTC

[iotdb] branch native_raft updated: remove duplicated shutdown

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

jiangtian pushed a commit to branch native_raft
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/native_raft by this push:
     new 3585e58e67 remove duplicated shutdown
3585e58e67 is described below

commit 3585e58e67a6ed3b2fcbb2936b378593c8f22dc7
Author: Tian Jiang <jt...@163.com>
AuthorDate: Wed May 17 11:49:47 2023 +0800

    remove duplicated shutdown
---
 .../main/java/org/apache/iotdb/consensus/natraft/RaftConsensus.java  | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/consensus/src/main/java/org/apache/iotdb/consensus/natraft/RaftConsensus.java b/consensus/src/main/java/org/apache/iotdb/consensus/natraft/RaftConsensus.java
index bca84ab443..cdcc08ff7e 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/natraft/RaftConsensus.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/natraft/RaftConsensus.java
@@ -117,11 +117,6 @@ public class RaftConsensus implements IConsensus {
             new Thread(
                 () -> {
                   logger.info(Timer.Statistic.getReport());
-                  try {
-                    stop();
-                  } catch (IOException e) {
-                    logger.error("Error during exiting", e);
-                  }
                 }));
     reportThread = IoTDBThreadPoolFactory.newSingleThreadScheduledExecutor("NodeReportThread");
     ScheduledExecutorUtil.safelyScheduleAtFixedRate(