Repository navigation
La Casa Del Dolor: do not symbolize trace_log in-flush on sanitizer builds - #129036
Conversation
…uilds On sanitizer builds the final system.trace_log flush at shutdown resolves every frame of every queued row (SymbolIndex::findSymbol, tryDemangle, AddressToLineCache) and can outlast the harness's 30 s stop window. The server is then force killed and the run reports "Server shutdown" (La Casa Del Dolor (amd_tsan), master 716b273: the main thread was in SystemLogQueue<TraceLogElement>::waitFlush, the trace_log thread in TraceLogElement::appendToBlock -> AddressToLineCache -> Dwarf::findAddress). The stateless and stress jobs already avoid this with tests/config/config.d/trace_log_no_symbolize.xml, which tests/config/install.sh installs for sanitizer and coverage builds. dolor.py builds its own config.d and never added it. Add it to every node's main_configs when CLICKHOUSE_IS_SANITIZED=1 (set by lacasadeldolor_job.py for amd_msan, amd_tsan and arm_asan_ubsan). Rows are still collected; symbols can be resolved on read with addressToSymbol/addressToLine, and no La Casa check reads trace_log.symbols or trace_log.lines. amd_debug keeps symbolizing. Measured on the CI amd_tsan binary of 716b273, replaying the failing run's BuzzHouse statements, final flush of 127k-140k rows, two runs per arm: - without the file: 34.8 s and 36.8 s (Block = 33.8 s and 35.7 s), SIGTERM to exit 38.3 s and 44.3 s; - with the file: 2.0 s and 2.6 s, SIGTERM to exit 8.1 s and 15.1 s, and system.trace_log.symbols is empty. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: 0 blocking findings (Gate B 0 findings; own review 2 nits)
|
|
Workflow [PR], commit [566f95e] Summary: ✅ AI ReviewSummaryThis PR applies the existing Missing context / blind spots
Final VerdictStatus: ✅ Approve |
|
cc @leshikus, could you review this and add the |
|
@groeneai you should always tag me for La Casa Del Dolor CI failures |
|
Noted. From now on I'll tag you on every La Casa Del Dolor CI failure I work on. |
be9f0a9
Related: #100242
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Failure. La Casa Del Dolor (amd_tsan) on master 716b2737 reported
Server shutdown:Server node0 did not shut down gracefully and had to be force killed. At the kill, the main thread was inSystemLogQueue<TraceLogElement>::waitFlushand thetrace_logthread inTraceLogElement::appendToBlock->AddressToLineCache->Dwarf::findAddress.Root cause. The dolor server config defines
<trace_log>withoutsymbolize, so the defaulttrueapplies on every flavour. On sanitizer builds, resolving every frame of every queued row in the final flush can take longer than what is left ofstop_clickhouse's 30 s window aftershutdown_wait_unfinished. The stateless and stress jobs avoid this withtests/config/config.d/trace_log_no_symbolize.xml(#100242), butdolor.pybuilds its ownconfig.dand never added it.Change. Add that file to every node's
main_configswhenCLICKHOUSE_IS_SANITIZED=1(amd_tsan, amd_msan, arm_asan_ubsan). Rows are still collected and can be symbolized on read; nothing in La Casa readssymbolsorlines. amd_debug is unchanged.Validation. Measured on the CI amd_tsan binary of 716b273, replaying that run's BuzzHouse statements, 2 runs per arm:
appendToBlock), and SIGTERM to exit took 38-44 s;This is not the compact-symbols slowdown of release builds: La Casa's builds keep
.symtab.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/129036]
Version info
26.11.1.1257-master(included in26.11and later)