Repository navigation
Backport #114826 to 26.3: Hold the table lock across a lightweight UPDATE pipeline - #116863
Conversation
|
Workflow [BackportPR], commit [177fbbc] Summary: ✅ |
…onfig.sh on 26.3 The backported test `04905_lwu_drop_race_table_lock` uses `CLICKHOUSE_DATABASE_1`, which master defines in `tests/queries/shell_config.sh` but 26.3 does not. With the variable empty, `DROP DATABASE IF EXISTS` failed with a syntax error at the end of the query. Bring the two exports from master to 26.3. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116863&sha=b22f795e097ee7c449e1e1aeeda4c26c668cbb68&name_0=BackportPR PR: #116863 Co-Authored-By: Claude Fable 5 <[email protected]>
…OINT` on disable The backported test `04905_lwu_drop_race_table_lock` needs two `FailPoint` fixes that master already has but `26.3` does not. `getFailPoints` reported `enabled` through `fiu_fail`, which *fires* the fail point instead of only inspecting it. A single `SELECT enabled FROM system.fail_points` therefore consumed every armed `ONCE`/`PAUSEABLE_ONCE` fail point. The test arms `rmt_pause_before_commit_local_part` and then reads `system.fail_points` to check that the arm took effect, which consumed the one shot before the `ReplicatedMergeTree` sink could reach it, so the sink never parked and the test reported `the sink never reached the commit hook` for all three arms. Report `enabled` through `fiu_status`, which inspects without firing. `disableFailPoint` also erased the channel while a concurrent `SYSTEM WAIT FAILPOINT ... PAUSE` was still waiting for `pause_epoch > resume_epoch`, so that wait never woke up - which is what produced the `Some queries hung` failure in the same job. Mark the channel `disabled` and let `waitForPause` return on it. Both hunks match master.
|
🕵 Pushed Root cause of the remaining red (reproduced locally against the
Both hunks are identical to what master already has; master is why the test passes there and not on |
The previous commit on this backport branch made `system.fail_points` non-destructive by reading the state with `fiu_status` instead of `fiu_fail`, but `26.3` pins `contrib/libfiu` at `94f7114`, which predates the ClickHouse fork commit that added `fiu_status`. Every build job failed with `error: use of undeclared identifier 'fiu_status'`. Move the gitlink to `74bc382`, the same revision `master` uses. The range `94f7114..74bc382` is purely additive - it only adds `fiu_status` and its bindings, manual page and test - so nothing else in `26.3` changes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
🕵 Pushed Every Moved the Verified locally by compiling |
Original pull-request #114826
Cherry-pick pull-request #116463
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.33.39