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 2021/07/28 08:41:06 UTC

[iotdb] branch autoai_debug updated: close flush buffer thread pool when close wal

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

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


The following commit(s) were added to refs/heads/autoai_debug by this push:
     new 0d2a9a7  close flush buffer thread pool when close wal
0d2a9a7 is described below

commit 0d2a9a7ad1d1d71a8349216e11760f1880c94ad6
Author: qiaojialin <64...@qq.com>
AuthorDate: Wed Jul 28 16:40:27 2021 +0800

    close flush buffer thread pool when close wal
---
 .../java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java b/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
index fbed153..c5339bd 100644
--- a/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
+++ b/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
@@ -161,6 +161,7 @@ public class ExclusiveWriteLogNode implements WriteLogNode, Comparable<Exclusive
       logger.warn("Waiting for current buffer being flushed interrupted");
     } finally {
       lock.unlock();
+      FLUSH_BUFFER_THREAD_POOL.shutdownNow();
     }
     long elapse = System.nanoTime() - start;
     if (elapse > 3_000_000_000L) {