Skip to content

Fix duplicate deletion emission in TsFileSplitter#17534

Merged
jt2594838 merged 2 commits intoapache:masterfrom
luoluoyuyu:fix/tsfile-splitter-duplicate-deletions
Apr 22, 2026
Merged

Fix duplicate deletion emission in TsFileSplitter#17534
jt2594838 merged 2 commits intoapache:masterfrom
luoluoyuyu:fix/tsfile-splitter-duplicate-deletions

Conversation

@luoluoyuyu
Copy link
Copy Markdown
Member

Description

Avoid applying deletions while switching time chunk context, which could emit the same deletion entries multiple times for aligned multi-device files. Add a regression test that verifies emitted deletion mods match expected mods exactly.


This PR has:

  • been self-reviewed.
    • concurrent read
    • concurrent write
    • concurrent read and write
  • added documentation for new or modified features or behaviors.
  • added Javadocs for most classes and all non-trivial methods.
  • added or updated version, license, or notice information
  • added comments explaining the "why" and the intent of the code wherever would not be obvious
    for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold
    for code coverage.
  • added integration tests.
  • been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

Avoid applying deletions while switching time chunk context, which could emit the same deletion entries multiple times for aligned multi-device files. Add a regression test that verifies emitted deletion mods match expected mods exactly.

Made-with: Cursor
@jt2594838 jt2594838 merged commit cd5f09e into apache:master Apr 22, 2026
26 of 27 checks passed
Caideyipi pushed a commit to Caideyipi/iotdb that referenced this pull request Apr 27, 2026
* Fix duplicate deletion emission in TsFileSplitter

Avoid applying deletions while switching time chunk context, which could emit the same deletion entries multiple times for aligned multi-device files. Add a regression test that verifies emitted deletion mods match expected mods exactly.

Made-with: Cursor

* update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants