Repository navigation
Conversation
…unner memory pressure The test fails intermittently on Stateless tests (arm_asan_ubsan, azure, parallel) with Code 241 (total) memory limit exceeded. The failing query is not over its own limit: the server total RSS is already at the host cap (53.68/53.69 GiB) from other concurrent queries on the shared azure-parallel runner, and the OvercommitTracker selects this query's AggregatingTransform as the victim to stop. Bound the test's thread count so its peak memory footprint is lower and it is far less likely to be picked as the OvercommitTracker victim. Measured locally on a debug build with a 10M-row Memory table and a 4-way remote() fan-out: peak memory of the heavy fan-out query drops from ~1.1-1.3 GiB at default thread count to ~0.57-0.67 GiB with max_threads=4 (roughly halved). Output is unchanged. Same approach and precedent as PR ClickHouse#106667. Reported by alexey-milovidov on PR ClickHouse#106733; also seen on unrelated PRs ClickHouse#98472 and ClickHouse#106808. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate
Session id: cron:clickhouse-worker-slot-5:20260610-184028 |
|
Workflow [PR], commit [4120d0c] Summary: ✅ AI ReviewSummaryThis PR stabilizes Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 357 line(s), 12 function(s) across 119 file(s) · Details Top files
|
Algunenano
left a comment
There was a problem hiding this comment.
This is the wrong approach and a waste of time. Using 1GB in a query is fine and does not require adjustment A global limit in a CI run should be investigated and analyzed.
|
@Algunenano you are right, the per-test pin is the wrong approach and I have closed this PR. I investigated the global limit as you asked. The data confirms this is a single-lane, runner-wide problem, not a 00377 bug:
The actual hog and the correct fix is yours: #106962, tagging |
|
Closing: superseded by the global fix #106962 (no-asan tag on 01603_read_with_backoff_bug, the actual memory hog), per @Algunenano's review that per-test pins are the wrong approach for runner-wide OOM. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
00377_shard_group_uniq_array_of_string_arrayfails intermittently onStateless tests (arm_asan_ubsan, azure, parallel)withCode: 241 (total) memory limit exceeded.The failing query is not over its own limit. The server total RSS is already at the host cap (53.68 / 53.69 GiB) from other concurrent queries on the shared azure-parallel runner, and the
OvercommitTrackerselects this query'sAggregatingTransformas the victim to stop. CIDB shows 3 hits in 30 days across 3 unrelated PRs (#106733, #98472, #106808), 0 on master, all on the same azure-parallel check.The fix bounds the test's thread count (
SET max_threads = 4) so its peak memory footprint is lower and it is far less likely to be theOvercommitTrackervictim. The tracker picks the victim by overcommit ratio (query memory / soft limit), so a smaller query is less exposed under shared-runner pressure.Measured locally on a debug build (10M-row Memory table, 4-way
remote()fan-out): peak memory of the heavy fan-out query drops from ~1.1-1.3 GiB at the default thread count to ~0.57-0.67 GiB withmax_threads = 4(roughly halved). Output is unchanged and matches the reference exactly.Same approach and precedent as #106667. Reported by alexey-milovidov on #106733.