Skip to content

Fix appendRemovalTIDToVersionMetadata for covered_parts in MergeTreeTransaction::addNewPartAndRemoveCovered - #81734

Merged
tuanpach merged 2 commits into
ClickHouse:masterfrom
tuanpach:fix-issue-71136
Jun 13, 2025
Merged

tuanpach merged 2 commits into
ClickHouse:masterfrom
tuanpach:fix-issue-71136

Conversation

@tuanpach

@tuanpach tuanpach commented Jun 12, 2025 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix: appendRemovalTIDToVersionMetadata for covered_parts in MergeTreeTransaction::addNewPartAndRemoveCovered so that there is a removal_id in the transaction metadata file even when it is removed without a transaction.
Hence, when restarting, it can load the outdated parts successfully without triggering:

Logical error: \'Data part 202410_1_42_8 is Outdated and has creation TID (94, 40, 3ce64a6c-c10e-4c02-8891-47977f2b6a1a) and CSN 95, but does not have removal tid. It\'s a bug or a result of manual intervention.\'.

Closes #71136

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

…action::addNewPartAndRemoveCovered so that there is a removal_id in the tranasction metadata file even when it is removed without a transaction
@tuanpach tuanpach added the can be tested Allows running workflows for external contributors label Jun 12, 2025
@clickhouse-gh

clickhouse-gh Bot commented Jun 12, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ab4fa30]

@tavplubix tavplubix self-assigned this Jun 12, 2025
@tuanpach tuanpach added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Jun 12, 2025
@tuanpach
tuanpach added this pull request to the merge queue Jun 13, 2025
Merged via the queue into ClickHouse:master with commit c4ad305 Jun 13, 2025
@tuanpach
tuanpach deleted the fix-issue-71136 branch June 13, 2025 06:58
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 13, 2025
robot-clickhouse added a commit that referenced this pull request Jun 13, 2025
robot-clickhouse added a commit that referenced this pull request Jun 13, 2025
robot-clickhouse added a commit that referenced this pull request Jun 13, 2025
robot-clickhouse added a commit that referenced this pull request Jun 13, 2025
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created-cloud deprecated label, NOOP label Jun 13, 2025
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jun 13, 2025
tuanpach added a commit that referenced this pull request Jun 13, 2025
tuanpach added a commit that referenced this pull request Jun 13, 2025
tuanpach added a commit that referenced this pull request Jun 13, 2025
tuanpach added a commit that referenced this pull request Jun 13, 2025
@tuanpach tuanpach changed the title Fix issue 71136 Fix appendRemovalTIDToVersionMetadata for covered_parts in MergeTreeTransaction::addNewPartAndRemoveCovered Jun 16, 2025
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-backports-created-cloud deprecated label, NOOP pr-ci pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logical error: data part is Outdated and has creation TID and CSN, but does not have removal tid

5 participants