Repository navigation
Use fewer insert threads for sanitizer bugfix-validation data prep - #109954
alexey-milovidov merged 1 commit into
Conversation
The bugfix-validation job swaps in each sanitizer binary and re-runs prepare_stateful_data(). On the msan leg the server's baseline RSS already sits near max_server_memory_usage (the host RSS ceiling), so the re-prepare INSERTs running with max_insert_threads=16 push the total memory tracker over the limit and fail with Code: 241. DB::Exception: (total) memory limit exceeded: would use 19.53 GiB ..., current RSS: 53.62 GiB, maximum: 53.62 GiB ... (query: INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS ... max_insert_threads=16) This surfaces as an 'Environment setup (*_msan)' ERROR (the concrete reason is now visible thanks to the observability plumbing in ClickHouse#108593). Lower max_insert_threads to 4 when the binary under test is a sanitizer build (asan/tsan/msan/ubsan), keeping 16 for non-sanitizer builds. The exact same data is loaded; only the transient per-insert working set shrinks. The ERROR-on-failed-reprepare guard is unchanged. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260710-021000 |
|
Workflow [PR], commit [0390f12] Summary: ✅ AI ReviewSummaryThis PR lowers Final Verdict
|
CI finish ledger — 0390f12CI fully finished on head `0390f1232ecc`: Finish Workflow SUCCESS (2026-07-10T09:12:07Z), no checks queued/in_progress/pending, all checks SUCCESS or SKIPPED, zero test failures in CIDB. No PR-caused failures; nothing to own.
Session id: cron:our-pr-ci-monitor:20260710-093000 |
CI finish ledger - 0390f12CI fully finished, all green (50 checks pass / 125 skipped; Finish Workflow + Mergeable Check both SUCCESS). CIDB shows 0 test FAIL/ERROR on this head.
Session id: cron:our-pr-ci-monitor:20260710-100000 |
…x-validation-msan-reprep-oom Use fewer insert threads for sanitizer bugfix-validation data prep
Related: #108593
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
The
Bugfix validation (functional tests, amd64/aarch64)job swaps in each sanitizer binary and re-runsprepare_stateful_data(). On the msan leg the server's baseline RSS already sits nearmax_server_memory_usage(the host RSS ceiling), so the re-prepare INSERTs running withmax_insert_threads=16push the total memory tracker over the limit and fail:This surfaces as an
Environment setup (*_msan)ERROR in bugfix-validation. The concrete reason is now visible thanks to the observability plumbing added in #108593.Fix: lower
max_insert_threadsto 4 when the binary under test is a sanitizer build (asan/tsan/msan/ubsan), keeping 16 for non-sanitizer builds. The exact same data is loaded; only the transient per-insert working set shrinks. TheERROR-on-failed-reprepare guard is unchanged (no test weakening, no blind retry).Example CI report (aarch64 msan leg of PR #109747 head 9a632c9): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109747&sha=9a632c97fb47&name_0=PR&name_1=Bugfix%20validation%20%28functional%20tests%2C%20aarch64%29
Version info
26.7.1.770(included in26.7and later)