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

Caideyipi pushed a commit to branch codex/cp-76d573a4-dev-1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/codex/cp-76d573a4-dev-1.3 by 
this push:
     new 8cf96f814d7 Adapt deletion recovery regression test to 1.3 
modification API
8cf96f814d7 is described below

commit 8cf96f814d776030c0660ffec0c17f3581d6b401
Author: Caideyipi <[email protected]>
AuthorDate: Mon Nov 2 19:22:06 2026 +0800

    Adapt deletion recovery regression test to 1.3 modification API
---
 .../db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoer.java | 3 +++
 .../dataregion/wal/recover/file/TsFilePlanRedoerTest.java              | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoer.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoer.java
index f6eba3e50b0..cadc96ad7d8 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoer.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoer.java
@@ -82,6 +82,9 @@ public class TsFilePlanRedoer {
 
   private List<Deletion> deletionsForFlushedData(
       PartialPath pathPattern, long deleteStartTime, long deleteEndTime) 
throws IOException {
+    // WAL inserts are replayed into memory and flushed after all deletions 
have been replayed.
+    // A file-wide deletion would also hide later inserts. The resource still 
describes only the
+    // data already on disk, and redoInsert skips that data using each 
device's end time.
     List<Deletion> deletions = new ArrayList<>();
     for (IDeviceID deviceID : tsFileResource.getDevices()) {
       Optional<Long> startTime = tsFileResource.getStartTime(deviceID);
diff --git 
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoerTest.java
 
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoerTest.java
index b296f077748..4652b37e995 100644
--- 
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoerTest.java
+++ 
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/recover/file/TsFilePlanRedoerTest.java
@@ -629,7 +629,7 @@ public class TsFilePlanRedoerTest {
             Long.MIN_VALUE,
             Long.MAX_VALUE));
 
-    assertFalse(ModificationFile.getExclusiveMods(file).exists());
+    assertFalse(ModificationFile.getNormalMods(tsFileResource).exists());
   }
 
   @Test

Reply via email to