Repository navigation
Host the tables of 05496_dynamic_disk_wrapper_of_server_credentials_disk in a Memory database - #131426
Conversation
…er_credentials_disk Stress workers with `i % 5 == 1` run every test with `memory_tracker_fault_probability=0.05`. The setting also applies to the client's own query memory tracker, so a `clickhouse client` call can fail with `Code: 241 ... fault injected` before it sends its query. When that call is the cleanup `DROP` of the last `run()` or of `t_policy`, a table that names the dynamic disk `plain_<db>` (or the policy `__server_<db>`) survives the test. Nothing defines that disk after a restart, so the server cannot load the table and does not start (`Code: 479 Unknown disk plain_test_1`, seen on ClickHouse#124804 with ClickHouse#130670 already in the build). Pin the probability to 0 for this test, next to the fuzzer and ignored DROP pins added by ClickHouse#130670. 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 my own cold review of the diff (0 blockers, 0 majors). I traced every Severity: ❌ blocker / |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261113-194100 |
|
Workflow [PR], commit [233ab11] Summary: ✅ AI ReviewSummaryMoves the tables in Final VerdictStatus: ✅ Approve |
…isk in a Memory database The stress test stops every worker at its global time limit. Worker 0 runs the tests in the runner's default descending order, so the limit lands in the same band of newest tests on every run; on 26.8 that band includes 05496 (4 `Stress test` jobs in 4 days, with ClickHouse#130670 present). The test can then stop between a `CREATE TABLE` that names a disk of an already dropped table (`disk = '<name>'`, `storage_policy = '__<name>'`, a wrapper of `server_<db>`) and its `DROP`. `prepare_for_hung_check` detaches, not drops, the databases, the restart attaches them again, the table cannot be loaded (`Unknown storage policy __server_<db>`, `Unknown disk plain_<db>`, `The wrapped disk must have been announced earlier`) and the server does not start. An interruption cannot be pinned by a setting, so every table of the test now lives in a Memory database, which keeps no table metadata on disk: after the restart it is empty, wherever the test was stopped. That also covers a `DROP` lost to an injected memory fault, so the `memory_tracker_fault_probability=0` pin of the previous commit is removed again. Same shape as ClickHouse#122101 (05234) and ClickHouse#131581 (05620). `CREATE DATABASE ... ENGINE = Memory` stays on one line: the runner's `--replace-log-memory-with-mergetree` (stress worker 0) rewrites `ENGINE = Memory` to MergeTree except on a line with `CREATE DATABASE`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review of the new commit by an independent model (engine: codex; 0 findings), plus my own cold review of the diff (0 findings). I checked that every later client call of the test goes through the switched Session id: cron:clickhouse-review-slot-9:20261117-102800 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261117-094600 |
Backport #131426 to 26.10: Host the tables of 05496_dynamic_disk_wrapper_of_server_credentials_disk in a Memory database
Backport #131426 to 26.9: Host the tables of 05496_dynamic_disk_wrapper_of_server_credentials_disk in a Memory database
Backport #131426 to 26.8: Host the tables of 05496_dynamic_disk_wrapper_of_server_credentials_disk in a Memory database
Related: #130670
Related: #118681
Related: #129044
Related: #122086
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
Description
After #130670,
Stress testjobs still failCannot start clickhouse-serveron a table left by this test, with that fix in the build (26.8,Stress test (arm_msan)):Three more 26.8 jobs since 2026-11-13 left
created, and #124804's run left one after an injected memory fault.Stress worker 0 runs tests in descending order, so its global time limit stops it in the same band of newest tests every run; on 26.8 that band includes this test. The test creates tables that name disks defined inline by tables it already dropped. Such a disk stays registered while the server runs, but after
prepare_for_hung_checkdetaches the databases and the server restarts nothing defines it, so a table left between such aCREATEand itsDROPcannot be loaded.The test now creates all its tables in a Memory database, as #122101 and #131581 do: it keeps no table metadata on disk, so after a restart it is empty wherever the test stopped. That also covers a
DROPlost to a memory fault, so this PR's earliermemory_tracker_fault_probability=0pin is removed again.Validated locally. Killing the test before each of its client calls, then detaching and restarting: master's file leaves an unloadable table at 13 of 43 points (12 abort the start, the
t_policyones with the message above), the patched file at none of 45. 50/50 randomized runs pass; 40 runs with memory faults and 10 with the stress fuzzer profile leave nothing in the test database, and the restart succeeds.Needs the 26.8, 26.9 and 26.10 backports, like #130670.
Workflow [PR]
Sync PR [sync-upstream/pr/131426]
Version info
26.11.1.2807-master(included in26.11and later)26.10.8.36,26.9.34.17,26.8.42.14