Skip to content

Disable 04033_tpc_ds_q61 (MEMORY_LIMIT_EXCEEDED on arm_asan_ubsan azure parallel) - #106797

Closed
groeneai wants to merge 1 commit into
ClickHouse:masterfrom
groeneai:disable-04033-tpc-ds-q61-oom
Closed

groeneai wants to merge 1 commit into
ClickHouse:masterfrom
groeneai:disable-04033-tpc-ds-q61-oom

Conversation

@groeneai

@groeneai groeneai commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Disable 04033_tpc_ds_q61 to mirror the existing pattern used for 04033_tpc_ds_q35.

The test fails transiently on Stateless tests (arm_asan_ubsan, azure, parallel) with the host-level OvercommitTracker killing the query when RSS hits the runner cap (~53.7 GiB):

Code: 241. DB::Exception: (total) memory limit exceeded: would use 5.07 GiB
(attempt to allocate chunk of 1.27 MiB), current RSS: 53.70 GiB, maximum: 53.69 GiB.
OvercommitTracker decision: Query was selected to stop by OvercommitTracker
(while reading column ss_customer_sk) ... in table tpcds.store_sales

This is host-level OvercommitTracker arbitration, not a per-query limit, so no SQL or test-level setting prevents it under sanitizer + Azure + parallel pressure. The same pattern is already in place for 04033_tpc_ds_q35 ("Known issue: Memory Limit Exceeded with reasonable amount of memory. Enable the test once the issue is resolved or memory is optimised.").

Related: #104545

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

The test fails transiently on `Stateless tests (arm_asan_ubsan, azure, parallel)` with the host-level
OvercommitTracker killing the query after RSS hits the runner cap (~53.7 GiB), e.g. PR ClickHouse#104545:

  Code: 241. DB::Exception: (total) memory limit exceeded: would use 5.07 GiB
  (attempt to allocate chunk of 1.27 MiB), current RSS: 53.70 GiB, maximum: 53.69 GiB.
  OvercommitTracker decision: Query was selected to stop by OvercommitTracker
  (while reading column ss_customer_sk): ... in table tpcds.store_sales

This is host-level OvercommitTracker arbitration, not a per-query limit, so there is no SQL or
test-level setting that prevents it under sanitizer + Azure + parallel pressure. Mirror the
established pattern already used for `04033_tpc_ds_q35` (also disabled with `echo "SKIP"` and a
"Known issue: Memory Limit Exceeded ... Enable the test once the issue is resolved or memory is
optimised" comment) until the underlying TPC-DS Q61 plan / memory footprint can be reduced.

Per directive on ClickHouse#104545:
> either fix the transient OOM in 04033_tpc_ds_q61 or disable this test, and send a separate PR.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Jun 9, 2026
@groeneai

groeneai commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

Pre-PR validation gate

# Question Answer
a Deterministic repro? The failure is host-level OvercommitTracker arbitration on the arm_asan_ubsan/azure/parallel runner: RSS reaches the cap (~53.7 GiB) and Q61 is selected to be killed. CIDB confirms the signature (Code: 241 ... current RSS: 53.70 GiB, maximum: 53.69 GiB. OvercommitTracker decision: Query was selected to stop) on PR #104545 (HEAD d92a147f5c1). Reruns pass (memory pressure varies between runs), so the failure is non-deterministic at the test layer but the CIDB signature is stable for diagnosis.
b Root cause explained? TPC-DS Q61 is a heavy 7-table join over store_sales (the largest TPC-DS fact table) read from the web/S3 disk. Under the arm_asan_ubsan/azure/parallel matrix (sanitizer overhead + Azure storage layer + concurrent stateless tests sharing the runner) total RSS reaches the host's OvercommitTracker cap. Per-query max_memory_usage is irrelevant: it's the sum of all running queries vs the host limit that triggers the kill, and Q61's working set is what gets selected.
c Fix matches root cause? The PR is a disable, not a code/setting tweak. There is no SQL- or test-level setting that prevents OvercommitTracker arbitration on host RSS — the host cap is the limit. The same project-accepted pattern is already used for 04033_tpc_ds_q35 (disabled with echo "SKIP" and a "Known issue: Memory Limit Exceeded ... Enable the test once the issue is resolved or memory is optimised" comment). This PR mirrors that pattern verbatim, which matches the directive's "or disable this test" option.
d Test intent preserved / new tests added? N/A — the test is being disabled to mirror 04033_tpc_ds_q35. Coverage is already partial across the TPC-DS suite (multiple Q tests are SKIP'd), so this is consistent with the suite's existing posture. The test can be re-enabled once Q61's memory footprint is reduced or the runner gets more headroom.
e Both directions demonstrated? Pre-fix: bash 04033_tpc_ds_q61.sh ran the full Q61 join (subject to host-OOM under sanitizer pressure, per CIDB). Post-fix: bash 04033_tpc_ds_q61.sh outputs SKIP, which matches the new 04033_tpc_ds_q61.reference. Locally verified: diff <(bash 04033_tpc_ds_q61.sh) 04033_tpc_ds_q61.reference exits 0.
f Fix is general, not a narrow patch? N/A for a test-disable change. The general fix (lower TPC-DS Q61 memory footprint or raise the runner cap) is out of scope; this PR matches the existing q35 pattern as the directive's explicit option.

Session id: cron:clickhouse-ci-task-worker:20260609-022600

@groeneai

groeneai commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

cc @rienath @rschu1ze — could you review this? Disables 04033_tpc_ds_q61 mirroring the existing 04033_tpc_ds_q35 SKIP pattern after a host-level OvercommitTracker OOM on arm_asan_ubsan/azure/parallel (see linked PR #104545). Filed per @alexey-milovidov's directive on that PR.

@clickhouse-gh

clickhouse-gh Bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [0fa2941]

Summary: ✅


AI Review

Summary

This PR disables 04033_tpc_ds_q61 by replacing the query execution with echo "SKIP" and updating the reference output accordingly. The change is scoped to stateless test coverage, mirrors the existing 04033_tpc_ds_q35 disable pattern, and matches the maintainer directive on the related PR after the transient MEMORY_LIMIT_EXCEEDED failure. I found no correctness or process findings requiring inline comments.

Final Verdict

Status: ✅ Approve

@clickhouse-gh

clickhouse-gh Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.50% 84.60% +0.10%
Functions 92.30% 92.30% +0.00%
Branches 77.20% 77.20% +0.00%

Changed lines: No C/C++ source files changed — skipping uncovered code analysis.

Newly covered by added/modified tests: 355 line(s), 32 function(s) across 117 file(s) · Details

Top files
  • src/Storages/ObjectStorage/DataLakes/Iceberg/Utils.cpp: 27 line(s)
  • src/Backups/BackupEntriesCollector.cpp: 25 line(s), 2 function(s)
  • src/Storages/StorageReplicatedMergeTree.cpp: 13 line(s)
  • src/Parsers/parseFieldFromCastedLiteral.cpp: 12 line(s), 11 function(s)
  • src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp: 12 line(s)

Full report

@rienath rienath self-assigned this Jun 9, 2026

@rienath rienath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q35 always consumed too much memory. Q61 didn't. Please verify this is indeed the case and find when these failures started. Instead of deleting the test, find the PR that increased memory consumption of Q61 and led to test failures @groeneai

@rienath

rienath commented Jun 10, 2026

Copy link
Copy Markdown
Member

@groeneai are you with me?

@groeneai

Copy link
Copy Markdown
Collaborator Author

@rienath yes, with you. Verified, and you're right:

Q35 is disabled (echo SKIP, comment "Known issue: Memory Limit Exceeded"). Q61 runs the real query and has 0 master failures across CIDB's full 90-day retention.

I could not find a PR that increased Q61's memory, because there is no Q61-specific regression. The only memory-typed Q61 failure ever recorded is the single OvercommitTracker OOM on 2026-06-08 (on PR #104545, an unrelated --chime client PR), and it passed all 3 reruns.

That OOM was one casualty of a runner-wide memory event on Stateless tests (arm_asan_ubsan, azure, parallel). MEMORY_LIMIT_EXCEEDED there hit 14 distinct tests / 10 PRs on 06-08, 311 / 29 on 06-09, 295 / 57 on 06-10. The TPC-DS queries failing alongside q61 on 06-08 were q04, q11, q23; on 06-09 about 24 of them. The error is host-level (current RSS: 53.70 GiB, maximum: 53.69 GiB, OvercommitTracker decision), not q61's own ~5 GiB footprint.

So this is shard RSS contention, not a Q61 regression, and disabling q61 would hide an infra problem rather than fix one. Closing this PR; q61 stays enabled.

@groeneai

Copy link
Copy Markdown
Collaborator Author

Closing: q61 has 0 master failures and the single OOM was host-level RSS contention during a runner-wide memory event, not a q61 regression. Keeping the test enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants