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

tanxinyu 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 a82e2793f4c Remove warning log when CheckPointManager find memtable id 
= -1 #12959
a82e2793f4c is described below

commit a82e2793f4ca3fac17fc7e4b77ed7609cfaef494
Author: Li Yu Heng <[email protected]>
AuthorDate: Thu Jul 18 09:56:50 2024 +0800

    Remove warning log when CheckPointManager find memtable id = -1 #12959
---
 .../db/storageengine/dataregion/wal/checkpoint/CheckpointManager.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/checkpoint/CheckpointManager.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/checkpoint/CheckpointManager.java
index 412dfcfc0a0..1c859f1eae4 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/checkpoint/CheckpointManager.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/checkpoint/CheckpointManager.java
@@ -24,6 +24,7 @@ import org.apache.iotdb.commons.file.SystemFileFactory;
 import org.apache.iotdb.db.conf.IoTDBConfig;
 import org.apache.iotdb.db.conf.IoTDBDescriptor;
 import org.apache.iotdb.db.service.metrics.WritingMetrics;
+import org.apache.iotdb.db.storageengine.dataregion.memtable.TsFileProcessor;
 import 
org.apache.iotdb.db.storageengine.dataregion.wal.exception.MemTablePinException;
 import org.apache.iotdb.db.storageengine.dataregion.wal.io.CheckpointWriter;
 import org.apache.iotdb.db.storageengine.dataregion.wal.io.ILogWriter;
@@ -374,7 +375,7 @@ public class CheckpointManager implements AutoCloseable {
   public int getRegionId(long memtableId) {
     final MemTableInfo info = memTableId2Info.get(memtableId);
     if (info == null) {
-      if (memtableId != Long.MIN_VALUE) {
+      if (memtableId != Long.MIN_VALUE && memtableId != 
TsFileProcessor.MEMTABLE_NOT_EXIST) {
         logger.warn("memtableId {} not found in MemTableId2Info", memtableId);
       }
       return -1;

Reply via email to