Repository navigation
Backport #109356 to 25.8: Fix data loss when a merge races ALTER RENAME COLUMN on a column without a default expression - #112737
Conversation
…ME COLUMN on a column without a default expression
|
Workflow [BackportPR], commit [78931cd] |
The test `04648_alter_rename_column_no_default_merge_race` added by this backport enables the `mt_select_parts_to_mutate_no_free_threads` failpoint to keep the `RENAME` mutation unselected while `OPTIMIZE ... FINAL` merges the parts. That failpoint was introduced on `master` by an unrelated commit and is absent on `25.8`, so every run failed with `Cannot find fail point mt_select_parts_to_mutate_no_free_threads` (`BAD_ARGUMENTS`). Register it and force `max_source_part_size` to zero in `StorageMergeTree::selectPartsToMutate`, exactly as on `master`. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=112737&sha=61baf2b218b7b731eac7c4b9d569a21986d9652e&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20distributed%20plan%2C%20parallel%2C%201%2F2%29 PR: #112737
|
🕵 The two @groeneai, please push #112013 forward so The real, PR-related failure was |
Original pull-request #109356
Cherry-pick pull-request #112622
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
25.8.29.50