Repository navigation
Retry functional tests on server (total) memory limit exceeded - #110503
alexey-milovidov merged 1 commit into
Conversation
The server-global (total) memory tracker can fire under heavy parallel co-scheduling on ASan shards: the OvercommitTracker kills queries across all co-scheduled tests once total RSS nears the shared server cap. This is a co-scheduling artifact, not a per-test fault, so retry it like the other transient heavy-load errors in MESSAGES_TO_RETRY. The (total) prefix is emitted only by the server-global tracker, so per-query/per-user limit tests are unaffected. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-2:20260715-054600 |
|
cc @maxknv @leshikus — could you review this? It adds the server-global |
|
Workflow [PR], commit [56ea866] Summary: ✅ AI ReviewSummaryThis PR retries functional-test failures whose output contains Findings
Final Verdict
|
| # tests once total RSS nears the shared server cap. Emitted only by the global | ||
| # tracker (programs/server/Server.cpp: setDescription("(total)")), never by a | ||
| # per-query/per-user limit, so retrying cannot mask a real per-query assertion. | ||
| "(total) memory limit exceeded", |
There was a problem hiding this comment.
(total) is not unique to the shared clickhouse-server failure mode described in the PR. clickhouse-local also sets the global tracker description to "(total)" in programs/local/LocalServer.cpp:1359, and we already have functional tests that run clickhouse-local under --max_server_memory_usage (for example tests/queries/0_stateless/04117_max_threads_min_free_memory_per_thread.sh:10-21 and tests/queries/0_stateless/03196_local_memory_limit.sh:7).
Because need_retry is just a substring match, a real clickhouse-local regression that hits its own global memory cap will now be retried as CI noise. The server-only part of the ASan incident is the OvercommitTracker decision suffix: clickhouse-server wires total_memory_tracker.setOvercommitTracker(...) in programs/server/Server.cpp:2569-2570, clickhouse-local does not, and MemoryTracker only appends that suffix when an overcommit tracker actually fired (src/Common/MemoryTracker.cpp:460-473). Please narrow the retry token to the server-specific form instead of the bare (total) memory limit exceeded.
CI finish ledger — 56ea866Every failure below has an owner: a fixing PR, or a full-effort fix task. Only
All other jobs passed (70 pass, 104 skipped). Approved by @leshikus. Session id: cron:our-pr-ci-monitor:20260715-103000 |
Pick up ClickHouse#110503 (retry functional tests on server total memory limit exceeded) so the amd_asan_ubsan distributed-plan lane no longer reds on the 2026-07-15 fleet-wide Code-241 OOM.
Pick up the fleet-wide stateless-test host OOM mitigations (ClickHouse#110503, ClickHouse#110574) so CI on this branch produces real signal. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…total-memory-oom Retry functional tests on server (total) memory limit exceeded
Pick up ClickHouse#110503 (retry functional tests on server total memory limit exceeded) so the amd_asan_ubsan distributed-plan lane no longer reds on the 2026-07-15 fleet-wide Code-241 OOM.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Retry a functional test that fails purely because the server-global
(total)memory tracker fired under heavy parallel co-scheduling.On the ASan functional shards, many tests run concurrently against one shared server. When co-scheduled queries push total RSS toward the shared server cap, the
OvercommitTrackerkills queries across all co-scheduled tests withCode: 241 ... (total) memory limit exceeded ... OvercommitTracker decision. This is a co-scheduling artifact, not a fault of the individual test, so it should be retried like the other transient heavy-load errors already inMESSAGES_TO_RETRY.Observed on 2026-07-15 01:00-04:45 UTC: the
Stateless tests (amd_asan_ubsan, distributed plan, parallel)job reddened on master and 15+ PRs with ~40 unrelated trivial tests per run failing with Code 241, all in a short window (7-day baseline for this lane is 2-10 Code-241 fails/day; the burst was ~1959, then self-resolved). Sample:(total) memory limit exceeded: would use 5.03 GiB ..., current RSS: 39.37 GiB, maximum: 41.84 GiB. OvercommitTracker decision.The
(total)prefix is set only by the server-global tracker (programs/server/Server.cpp,total_memory_tracker.setDescription("(total)")). Per-query and per-user memory-limit exceptions sayQuery/User, never(total), so tests that legitimately assert a per-query/per-user limit are not affected and no test asserts the(total)string. This is the zero-throughput-cost complement to #107441 (which lowered concurrency on the azure ASan shard): it absorbs residual transient total-memory OOM on any ASan shard without reducing concurrency on healthy runs.Version info
26.7.1.993(included in26.7and later)