Repository navigation
Allowlist the expected 05024 KeeperMap metadata error in the upgrade check - #120990
Conversation
…check The `Error message in clickhouse-server.log` sub-result of `Upgrade check (amd_release)` fails on unrelated PRs because the post-upgrade server logs <Error> StorageKeeperMap (test_1.`05024_keeper_map_parenthesized_metadata_unparsable` (...)): Failed to activate table because of invalid metadata in ZooKeeper. Please DROP/DETACH table for a table that `05024_keeper_map_parenthesized_metadata` deliberately left with an unreadable `metadata` znode. The job replays the previous release's suite under `stress --upgrade-check`. The test rewrites its shared `metadata` znode through shapes a server must refuse and reverts them near the end of the file; stress worker 1 (`--database=test_1`) runs with `memory_tracker_fault_probability`, so an injected `Code: 241` can stop the file before the `DROP`s at its end run, leaving the tables it created behind with an unreadable znode. The upgrade restart re-attaches the surviving tables and logs the message above per table instead of refusing to start, which is what ClickHouse#115941 made it do on purpose (it replaced the startup abort of ClickHouse#115881), and the runner greps the post-upgrade log for `<Error>`. Measured on the three PRs the signature has hit (ClickHouse#94105, ClickHouse#118419, ClickHouse#94730): the fixture accounts for 1/1, 1/1 and 3/3 of the leaked lines while every other sub-result of the job is OK, so the check yields no signal at all for the carrier. The entry requires the `StorageKeeperMap` logger AND a backquoted table name starting with the fixture prefix AND the message, so the same message on any other KeeperMap table, which is the shape a real metadata-compatibility regression takes, still fails the job. Replaying the job's own scan pipeline over each carrier's `clickhouse-server.upgrade.log` reproduces that job's `upgrade_error_messages.txt` byte for byte, and the entry takes each of the three to zero; over the 156,750 pre-filter log lines the pattern matches exactly the leaked lines and nothing else. Related: ClickHouse#115881
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 7 findings over 3 full passes and
Severity: ❌ blocker / Residuals I am naming rather than hiding: the entry also masks the fixture's Session id: cron:clickhouse-review-slot-8:20260919-075300 |
|
Workflow [PR], commit [a82c1b5] Summary: ✅ AI ReviewSummaryThis PR adds a targeted allowlist entry to Final Verdict✅ No new findings. |
8e79629
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 KeeperMap metadata error that
05024_keeper_map_parenthesized_metadatawrites on purpose and leaves behind when fault injection interrupts it before its cleanup.Description
Upgrade check (amd_release)reds onError message in clickhouse-server.logwhile every other sub-result isOK, so the job gives its PR no signal. Three measured runs, all on unrelated PRs touching no KeeperMap code, no05024*test and not the runner; in each the fixture is 100% of the leaked lines (1/1, 1/1, 3/3).Root cause: the job replays the previous release's suite, carrying
05024_keeper_map_parenthesized_metadata. It rewrites its own KeeperMapmetadataznode into shapes a server must refuse, reverting them near the end of the file. Worker 1 runs withmemory_tracker_fault_probability: on all three runs an injectedCode: 241stopped the file mid-rewrite, so its cleanup never ran and the tables survived with an unreadable znode. The upgrade restart re-attaches them and logsFailed to activate table because of invalid metadata in ZooKeeperper table instead of refusing to start, which #115941 made it do on purpose, replacing the startup abort of #115881.The entry requires the
StorageKeeperMaplogger AND a backquoted fixture-prefixed table name AND the message, so the same message on any other KeeperMap table still reds the job. Replaying the job's own pipeline over each run's real log reproduces itsupgrade_error_messages.txtbyte for byte; the entry takes all three to 0 and matches nothing else across 156,750 real log lines.Fixing the test cannot reach this job: the copy it replays pins
ignore_drop_queries_probability = 0, so--fake-dropdoes not apply and itsDROPs do drop - they just never ran. #120978 retires the neighbouring mutation entries by killing the leftovers instead; there is nothing to kill here, and dropping leftoverKeeperMaptables wholesale would remove the cross-version attach coverage this job exists for. If cleanup is preferred to filtering here too, that new block is the place.The three failing runs, what still reds, and the leftover-table precedent in this file
Still red with the entry in place, each checked against the real pipeline: the same message on another KeeperMap table (
02418_test), the siblingconnection issuesmessage, the same message under an unrelated logger and under the siblingStorageKeeperMapBackup/StorageKeeperMapRestoreloggers, a table name not at identifier start, aLOGICAL_ERRORon the very same fixture table, and theCode: 27_delimiter_secondattach failure.Leftover-table precedent in this file, neither of which #120978 retires:
c06040ab97f9c(04725's unresolvable host, frozen in the previous release's copy) anda271dbefd7977(a Kafka table whose topic is already deleted).Related: #115881
Related: #120978
Related: #120881
Related: #113983
Workflow [PR]
Sync PR [sync-upstream/pr/120990]
Version info
26.10.1.203(included in26.10and later)