You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ma...@apache.org on 2022/11/11 09:05:41 UTC

[iotdb] branch master updated: [IOTDB-4789]Fix the bug of termination timing log can not be logged (#7775)

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

marklau99 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 f9c46222b7 [IOTDB-4789]Fix the bug of termination timing log can not be logged (#7775)
f9c46222b7 is described below

commit f9c46222b7b1404d10ec74c79b843c5d7f9c4996
Author: Ming <ym...@foxmail.com>
AuthorDate: Fri Nov 11 17:05:35 2022 +0800

    [IOTDB-4789]Fix the bug of termination timing log can not be logged (#7775)
---
 .../org/apache/iotdb/db/engine/compaction/CompactionTaskManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 1720ad6c71..16920b222c 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
@@ -174,8 +174,8 @@ public class CompactionTaskManager implements IService {
 
   private void waitTermination() {
     long startTime = System.currentTimeMillis();
+    int timeMillis = 0;
     while (!taskExecutionPool.isTerminated()) {
-      int timeMillis = 0;
       try {
         Thread.sleep(200);
       } catch (InterruptedException e) {