Repository navigation
Backport #104822 to 26.3: Fix race between ALTER RENAME COLUMN and merge causing data loss (#80648) - #109336
Merged
Conversation
…rge causing data loss (#80648)
robot-clickhouse
force-pushed
the
backport/26.3/104822
branch
from
July 3, 2026 16:56
174f612 to
8ebe24b
Compare
Contributor
|
Workflow [BackportPR], commit [22cca0a] Summary: ✅ |
1 task
The cherry-pick of #104822 added `MergeTreeData::checkMetadataProperties`, which calls `checkProperties` with the master signature (6 arguments). On the `26.3` branch `checkProperties` still takes 7 arguments - it has the extra `allow_reverse_sorting_key` parameter - so the auto-merged call did not compile, breaking all builds. Pass `allow_reverse_key` as the 5th argument, matching the other call sites in this file (`setProperties`, the projection check, and the ALTER path at line 4642). CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109336&sha=8ebe24b5e7ec5af647cff53bee965690aa2d3030&name_0=BackportPR Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
bytehalo-infra
added a commit
to sentioxyz/ClickHouse
that referenced
this pull request
Sep 25, 2026
STOR: RENAME COLUMN racing OPTIMIZE FINAL / background merge (StorageMergeTree) -> data (column replaced by defaults). Effect in the production build a394e92: its upstream test(s) 04296_alter_rename_column_in_memory_rollback, 04308_alter_rename_column_prepared_mutation_cleanup, 04309_alter_rename_column_post_registration_rollback, 04310_alter_rename_column_settings_rollback fail on it and pass on official 26.8.8.8, run on isolated servers (evidence/fix_ci_20260925/upstream_repro/server_triage_PROD263_vs_UP2688.tsv). Upstream patch unchanged, with its test(s): 04296_alter_rename_column_in_memory_rollback,04308_alter_rename_column_prepared_mutation_cleanup,04309_alter_rename_column_post_registration_rollback,04310_alter_rename_column_settings_rollback. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #104822
Cherry-pick pull-request #109320
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.17.20