Repository navigation
La Casa Del Dolor: report startup failures, fix encrypted disk paths, avoid false shutdown failures - #128774
Merged
Conversation
…ailures Startup: with `with_dolor` the server runs as a foreground exec in a container that stays alive on its own, so `wait_until_port_is_ready` kept waiting for 300 s after the server had exited, and the job reported a bare `dolor.py exception`. Now the wait fails as soon as the server exec ends, with its exit code and the tails of the server's error log and stderr, and the job names the server's own failure (e.g. a sanitizer report) when its logs have one. Encrypted disks were generated with an absolute `path`, but it is relative to the wrapped disk; over an object storage disk the server refused to start with `PATH_ACCESS_DENIED`. Shutdown: `shutdown_wait_backups_and_restores = 1` waits for running backups and restores without a time limit, by design, so it is now always 0. A shutdown can spend `shutdown_wait_unfinished` twice, so it is capped at half of the window `dolor.py` allows. Examples: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=4944813cca464e86af5d1e763b132ed6a1fc2bb0&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28arm_asan_ubsan%29 https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=b08434c5500c10180f0c43fedb0f5e860b20f46f&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28amd_debug%29 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [1df78c7] Summary: ✅ AI ReviewSummaryThe PR improves startup failure diagnostics in La Casa Del Dolor, generates relative paths for encrypted disks, and keeps shutdown waits within the harness deadline. No actionable findings at Missing context / blind spots
Final VerdictStatus: ✅ Approve |
This was referenced Nov 3, 2026
This was referenced Nov 3, 2026
This was referenced Nov 3, 2026
opensource-fork-sync Bot
pushed a commit
to cla7aye15I4nd/opensource-ClickHouse__ClickHouse
that referenced
this pull request
Nov 5, 2026
… disk An encrypted disk with a `path` makes `DiskEncrypted` create that directory on the wrapped disk at startup. The generator could give an object storage disk `readonly = 1` and then wrap it in an encrypted disk with a relative path (ClickHouse#128774), so the server could never start: on a readonly local `plain_rewritable` disk the write is refused and the rollback retries READONLY without end (master La Casa Del Dolor (amd_debug), sha 5601c73). Record which disks were generated readonly, and give an encrypted disk no `path` when the bottom disk of its chain is one of them; it then uses that disk's root and needs no write. `random.randint` stays the first operand, so the random stream and every other generated config are unchanged (checked on 20000 seeds x 4 generator variants). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes in the
La Casa Del Dolorharness for the failures it reports on master since it was added in #94148.Startup failures reported as
dolor.py exception. Withwith_dolorthe server runs as a foreground exec in a container whose entrypoint istail -f /dev/null, so the container staysrunningwhen the server dies.wait_until_port_is_readyonly failed fast on anexitedcontainer, so it waited the whole 300 s for a server that had exited a second after starting, and the job then reported only the Python traceback. All 9 such failures since 2026-10-12 were servers that exited at startup. Now:clickhouse-server.err.logandstderr.log(only withwith_dolor, where the exec id is always that of the current server);dolor.py exception, the job runs the log parser over the node's logs, so e.g. the master failure below is reported asUndefinedBehaviorSanitizer: undefined behavior (STID: 2551-36b1)(the server-side fix for it is a separate PR).Encrypted disks with an absolute
path. The path of anencrypteddisk is relative to the disk it wraps (wrapped_disk->getPath() + path). Over a localobject_storagedisk an absolute path is rejected withPATH_ACCESS_DENIEDand the server refuses to start. Now it is relative.False
Server shutdownfailures.dolor.pyforce kills a server that has not stopped within 30 s.shutdown_wait_backups_and_restores = 1(the default, and half of the runs) waits for running backups and restores without a time limit, by design; 9 of 13Server shutdownfailures were that. It is now always 0, so the server cancels them withinshutdown_wait_unfinished. The backup and restore error paths that ignore the cancellation are fixed in the server separately.shutdown_wait_unfinishedtwice (cancelling backups and restores, then waiting for the connections that ran them), so it is capped at(SERVER_STOP_WAIT_SECONDS - 10) / 2.Examples:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=4944813cca464e86af5d1e763b132ed6a1fc2bb0&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28arm_asan_ubsan%29
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=b08434c5500c10180f0c43fedb0f5e860b20f46f&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28amd_debug%29
Related: #94148
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/128774]
Version info
26.11.1.1184-master(included in26.11and later)