Skip to content

[To dev/1.3] Fix tree deletion recovery during WAL replay (#19081) - #19089

Open
Caideyipi wants to merge 3 commits into
dev/1.3from
codex/cp-76d573a4-dev-1.3
Open

Caideyipi wants to merge 3 commits into
dev/1.3from
codex/cp-76d573a4-dev-1.3

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary

During WAL recovery, an original tree deletion can cover data written later in the WAL. Persist deletion mods only for matching devices and cap each mod at that device's flushed end time so a later rewrite remains visible after restart.

This port uses the 1.3 Deletion and ModificationFile APIs. It carries the tree-model change from source commit 76d573a4e3d83068d4eb4bbb1e4ed97040463eb8; the table-model changes are omitted because dev/1.3 has no corresponding implementation.

Source

Apache IoTDB PR #19081

Validation

  • Spotless formatting passed.
  • TsFilePlanRedoerTest and IoTDBDeletionRecoveryIT are pending targeted verification.

Backport the tree-model WAL deletion recovery fix from 76d573a.

The table-model changes from the source commit are not included because dev/1.3 has no corresponding table-model implementation.
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.

1 participant