You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2022/04/20 03:09:45 UTC

[iotdb] branch master updated: [IOTDB-2943] Fix cannot use stop-server.sh to stop IoTDB (#5591)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8b2817bc05 [IOTDB-2943] Fix cannot use stop-server.sh to stop IoTDB (#5591)
8b2817bc05 is described below

commit 8b2817bc05481e139ef892ba0be2d72aead5f703
Author: Liu Xuxin <37...@users.noreply.github.com>
AuthorDate: Tue Apr 19 20:09:41 2022 -0700

    [IOTDB-2943] Fix cannot use stop-server.sh to stop IoTDB (#5591)
---
 .../apache/iotdb/db/engine/compaction/CompactionTaskManager.java    | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionTaskManager.java b/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionTaskManager.java
index 7e9b7a9636..864ec64b5c 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionTaskManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionTaskManager.java
@@ -175,12 +175,8 @@ public class CompactionTaskManager implements IService {
     while (!taskExecutionPool.isTerminated()) {
       int timeMillis = 0;
       try {
-        Thread.sleep(200);
+        this.wait(200);
       } catch (InterruptedException e) {
-        logger.error(
-            "CompactionMergeTaskPoolManager {} shutdown",
-            ThreadName.COMPACTION_SERVICE.getName(),
-            e);
         Thread.currentThread().interrupt();
       }
       timeMillis += 200;