Repository navigation
Conversation
… phase's mutations The kill step added by ClickHouse#120978 reads `system.mutations`, which lists only the tables the old server holds attached. A `DETACH` without `PERMANENTLY` that the stress phase did not undo keeps the table's metadata, so the upgraded server attaches the table again and resumes its mutation. On ClickHouse#122577, `01160_table_dependencies.sh` was still detaching the shared stress database when the stress phase ended; the kill step reported no unfinished mutation, and the upgraded server retried a `throwIf(1)` mutation of `04341_broken_mutation_part_log_flush` for the whole log window (297 `<Error>` lines). Restart the previous release once before the kill step, with the script's own `stop_server 300 false` / `start_server`. The restarted server holds what its metadata lists, the same state the upgrade loads, so the kill sees every mutation the upgrade would resume. The restart also ends the queries left running by the stress phase (the case ClickHouse#123841 handles with `KILL QUERY`). The 60 s the stop waits for leftover queries moves from the final stop to this one, so the added time is one previous-release startup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own review (3 nits).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261008-010231 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261008-002300 |
|
Workflow [PR], commit [002d95a] Summary: ✅ AI ReviewSummaryThis PR makes Final Verdict
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The `system.tables` probe after the stress phase only collected gdb.log and force-stopped the server when it hung. The kill step's queries then failed against the stopped server and reported it, but the restart of the previous release added before the kill step brings the server back, so a 10-minute hang there would pass unnoticed. Record a failure row in that branch, as the shutdown hang check in stress_tests.lib does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Two more |
Related: #122577
Related: #120978
Related: #123841
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Upgrade check: restart the previous release before killing the mutations left by the stress phase, so the kill also reaches tables that an unfinished
DETACHleft detached.Description
Upgrade check (amd_release)failed on #122577 withError message in clickhouse-server.log: 297<Error>lines of onethrowIf(1)mutation: report. Requested by @ alexey-milovidov in #122577 (comment).Root cause.
01160_table_dependencies.shwas still runningDETACH DATABASEon the shared stress database when the stress phase ended, and had already detached the table of04341_broken_mutation_part_log_flushwith its broken mutation.system.mutationslists only attached tables, so the kill step found nothing and reported OK. ADETACHwithoutPERMANENTLYkeeps the metadata, so the upgraded server attached the table again and retried the mutation for the whole log window.Change. Restart the previous release once, right before the kill step. A restarted server attaches every table its metadata lists, as the upgraded server will, so the kill also sees the mutations of tables an unfinished
DETACHleft detached. The restart also ends the queries the stress phase left running. Thesystem.tableshang probe before it now records a failure, as the restart would otherwise hide a hang there. Cost: one previous-release startup (about 10 s). Trade-off: the restart also lifts the in-memorySYSTEM STOP ...of interrupted tests, so the work they held (merges, fetches, pendingDistributedbatches) may run on the previous release before the upgrade instead of on the upgraded server.Validation. Local rig, 26.9.12.8 upgraded to master,
throwIf(1)mutations on a detached table, a detached database, a database partly detached by an in-flightDETACH DATABASE, and an attached control: without the change 3/3 runs report OK and the upgraded server logs 45FUNCTION_THROW_IF_VALUE_IS_NON_ZEROerrors per detached table; with it 3/3 runs kill all four mutations and log none.Workflow [PR]
Sync PR [sync-upstream/pr/124532]