You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by er...@apache.org on 2022/08/23 03:33:44 UTC

[iotdb] 01/01: [IOTDB-4210] Fix deadlock during WALNode recover if there's no suitable tsfiles

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

ericpai pushed a commit to branch bugfix/iotdb-4210
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit d9f4ff88ce274226b3faca6124b8624aa58a3dc1
Author: ericpai <er...@hotmail.com>
AuthorDate: Tue Aug 23 11:33:21 2022 +0800

    [IOTDB-4210] Fix deadlock during WALNode recover if there's no suitable tsfiles
---
 .../main/java/org/apache/iotdb/db/wal/recover/WALNodeRecoverTask.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/wal/recover/WALNodeRecoverTask.java b/server/src/main/java/org/apache/iotdb/db/wal/recover/WALNodeRecoverTask.java
index d5a13e2596..9575f427af 100644
--- a/server/src/main/java/org/apache/iotdb/db/wal/recover/WALNodeRecoverTask.java
+++ b/server/src/main/java/org/apache/iotdb/db/wal/recover/WALNodeRecoverTask.java
@@ -226,6 +226,9 @@ public class WALNodeRecoverTask implements Runnable {
                 WALFileUtils.walFilenameFilter(dir, name)
                     && WALFileUtils.parseVersionId(name) >= firstValidVersionId);
     if (walFiles == null) {
+      for (UnsealedTsFileRecoverPerformer recoverPerformer : memTableId2RecoverPerformer.values()) {
+        recoverPerformer.getRecoverListener().succeed();
+      }
       return;
     }
     // asc sort by version id