Skip to content

ci: tag 01603_read_with_backoff_bug as no-asan to prevent cascading OOM - #106962

Merged
Algunenano merged 2 commits into
ClickHouse:masterfrom
Algunenano:fix/asan-oom-ci
Jun 11, 2026
Merged

Algunenano merged 2 commits into
ClickHouse:masterfrom
Algunenano:fix/asan-oom-ci

Conversation

@Algunenano

@Algunenano Algunenano commented Jun 10, 2026 •

Copy link
Copy Markdown
Member

test 01603_read_with_backoff_bug inserts ~25 million rows of long strings with max_memory_usage='10Gi'. Under ASan builds the allocator keeps freed pages mapped (does not return them to the OS immediately), leaving the server RSS at ~50 GiB after the test finishes. The ARM ASan/UBSan parallel CI machines are capped at ~53.7 GiB; subsequent parallel tests then hit the cgroup total-RSS limit and fail with (total) memory limit exceeded.

This is related a wave of OOM failures on June 9 in Stateless tests (arm_asan_ubsan, azure, parallel) on master commits that ran after ~15:00 UTC:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=c3131f32650011b46a72a4d5c44991d2da378f6b&name_0=MasterCI&name_1=Stateless%20tests%20%28arm_asan_ubsan%2C%20azure%2C%20parallel%29

The test already carried no-tsan and no-msan tags for the same reason (runtime instrumentation inflates memory use). This PR extends the pattern to ASan.

Changelog category (leave one):

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

Version info

  • Merged into: 26.6.1.665

…ng OOM

The test inserts ~25M rows of long strings with `max_memory_usage='10Gi'`.
Under ASan builds the allocator keeps freed pages mapped (does not return them
to the OS), so the server RSS stays elevated (~50 GiB) long after the test
finishes.  With the ARM ASan/UBSan parallel CI machines capped at ~53.7 GiB,
subsequent parallel tests then hit the total-RSS cgroup limit and fail with
`(total) memory limit exceeded`, causing cascading OOM across the whole suite.

The test already carried `no-tsan` and `no-msan` tags for the same reason.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a83d625]

Summary: ✅


AI Review

Summary

This PR adds no-asan to tests/queries/0_stateless/01603_read_with_backoff_bug.sql and updates the test comment because the large string insert leaves sanitizer builds with elevated RSS, causing later parallel stateless tests to hit the cgroup memory limit. I found no correctness or CI-routing issues: tests/clickhouse-test maps ASan builds to the asan build flag and skips tests tagged no-asan, the cited master report shows the expected (total) memory limit exceeded symptom, and the PR CI report has no failed tests.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jun 10, 2026
@Algunenano

Copy link
Copy Markdown
Member Author

Updating the address the OOMs, which were related to the introduction of distributed plans

@clickhouse-gh

clickhouse-gh Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.60% 84.60% +0.00%
Functions 92.30% 92.30% +0.00%
Branches 77.30% 77.30% +0.00%

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

Newly covered by added/modified tests: 400 line(s), 55 function(s) across 138 file(s) · Details

Top files
  • src/Storages/WindowView/StorageWindowView.cpp: 22 line(s), 1 function(s)
  • src/AggregateFunctions/TimeSeries/AggregateFunctionTimeseriesChanges.h: 14 line(s), 32 function(s)
  • src/AggregateFunctions/TimeSeries/AggregateFunctionTimeSeriesGroupArray.h: 14 line(s), 8 function(s)
  • src/AggregateFunctions/AggregateFunctionQuantileGK.cpp: 14 line(s)
  • src/IO/AzureBlobStorage/copyAzureBlobStorageFile.cpp: 12 line(s)

Full report

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

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants