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/11/24 10:59:38 UTC

[iotdb] branch master updated: [IOTDB-4556] Optimize log of failing to flush sync index (#8090)

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 4da2f1bf4f [IOTDB-4556] Optimize log of failing to flush sync index (#8090)
4da2f1bf4f is described below

commit 4da2f1bf4f70251c3e3a0fc2aef1ea2beaa7bdc9
Author: Alan Choo <43...@users.noreply.github.com>
AuthorDate: Thu Nov 24 18:59:33 2022 +0800

    [IOTDB-4556] Optimize log of failing to flush sync index (#8090)
---
 .../iotdb/consensus/multileader/logdispatcher/IndexController.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/IndexController.java b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/IndexController.java
index f43f0a4416..b79abf1aa9 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/IndexController.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/IndexController.java
@@ -108,9 +108,10 @@ public class IndexController {
             newFile.getAbsolutePath());
       } else {
         // In the normal state, this branch should not be triggered.
-        logger.error(
-            "failed to flush sync index. cannot find previous version file. previous: {}",
-            lastFlushedIndex);
+        logger.warn(
+            "failed to flush sync index. cannot find previous version file {}, current file is {}",
+            oldFile.getAbsolutePath(),
+            newFile.getAbsolutePath());
       }
 
       lastFlushedIndex = flushIndex;