Repository navigation
Conversation
The upgrade check runs the previous release's copy of the stateless suite. `05259_replace_partition_covers_outdated_parts_replicated` keeps outdated parts on disk on purpose (`SYSTEM STOP CLEANUP`, `old_parts_lifetime = 100000`): its `DROP PART '1_1_1_0_2'` removes two parts from ZooKeeper with no covering part, and the empty covering part that its `REPLACE PARTITION` writes is the only thing that covers them on disk. Stress worker 1 (`--database=test_1`) runs with `memory_tracker_fault_probability`, so an injected `Code: 241` can fail that `REPLACE PARTITION` (before its ZooKeeper change, or after it, in the covering part's storage commit). The file stops there, the cleanup stays stopped, `--fake-drop` keeps the table, and every later load of it finds 2-3 rows in parts that ZooKeeper does not have and nothing covers, so the attach thread refuses it: <Error> test_1.t_replace_cover_rep (ReplicatedMergeTreeAttachThread): Initialization failed, table will remain readonly. Error: Code: 231. DB::Exception: The local set of parts of table test_1.t_replace_cover_rep (...) doesn't look like the set of parts in ZooKeeper: 3.00 rows of 4.00 total rows in filesystem are suspicious. There are 3 uncovered unexpected parts with 3 rows (...), 0 missing parts (with 0 blocks), 0 covered unexpected parts (with 0 rows). (TOO_MANY_UNEXPECTED_DATA_PARTS) The old server gives the same table the same refusal (on PR ClickHouse#126627 it logged the identical line 10 times before the upgrade), so it is not a compatibility signal. A master change to 05259 cannot clear this job while a release with the current copy of the test is the previous one, so the entry is needed until that test no longer leaves this state behind when it is stopped between its `DROP PART` and the end of its `REPLACE PARTITION`. The new matcher requires the `<db>.t_replace_cover_rep` attach-thread logger (exact table name), the read-only branch, Code 231, `0 missing parts (with 0 blocks)` and `TOO_MANY_UNEXPECTED_DATA_PARTS` together. The same error on any other table (a real covering-part regression, like `test_1.rmt` on PR ClickHouse#121145, fixed by ClickHouse#122610), any other code, or a load that also misses parts in ZooKeeper still fails the job. Seen on PR ClickHouse#127801 and PR ClickHouse#126627 (Upgrade check (amd_release)). 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; 0 findings), plus an independent cold review of the same tree (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261026-141500 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261026-140600 |
|
Workflow [PR], commit [fb2f36a] Summary: ✅ AI ReviewSummaryAdds a scoped exclusion for the read-only Missing context / blind spots
Final VerdictStatus: ✅ Approve |
|
cc @yakov-olkhovskiy, could you review this and add the |
Related: #120980
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Stop the upgrade check from failing on the read-only replica that an interrupted
05259_replace_partition_covers_outdated_parts_replicatedleaves behind.Description
Upgrade check (amd_release)reds onError message in clickhouse-server.logon unrelated PRs (#127801, #126627). The only leaked line in each:The job replays the
v26.10.2.103-stablesuite. Its 05259 stops the cleanup and keeps outdated parts on purpose; after itsDROP PART, only the empty part written by itsREPLACE PARTITIONcovers them. In both runs stress worker 1 (--database=test_1,memory_tracker_fault_probability) failed thatREPLACE PARTITIONwith an injectedCode: 241, the file stopped, and--fake-dropkept the table, so every later load refuses the uncovered parts (on #126627 the old server logged the same line 10 times). A master change to the test cannot reach this job while 26.10 is the previous release.The new matcher requires the exact table name in the attach-thread logger, the read-only branch, Code 231,
0 missing partsandTOO_MANY_UNEXPECTED_DATA_PARTS. The same error on any other table, like the realtest_1.rmtbug on #121145 fixed by #122610, still reds the job.Validation: the job's scan, replayed over both runs' upgrade logs, reproduces each
upgrade_error_messages.txtbyte for byte on master and gives 0 lines with the entry; #121145, two other runs and 8 one-field variants of the line are unchanged.On #127801 the covering part was lost because
MergeTreeData.cpp:8316commits that part's storage afterremovePartsFromWorkingSet(:8308); not changed here.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127843]