Skip to content

Do not run 01516_drop_table_stress_long under MSan - #109587

Merged
alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/01516-drop-table-stress-no-msan
Jul 7, 2026
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/01516-drop-table-stress-no-msan

Conversation

@groeneai

@groeneai groeneai commented Jul 6, 2026 •

Copy link
Copy Markdown
Collaborator

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):

...

Description

01516_drop_table_stress_long is a concurrent DROP/CREATE stress loop (25 iterations, ~200 clickhouse-client startups). Under MSan the instrumented startup cost pushes the wall-clock time into the tail (avg 315s, max 543s on passing runs), and rare runs exceed the per-test timeout and are killed with Timeout!.

All 3 timeout failures in the last 30 days are on amd_msan only; 0 on any other build. The rerun diagnosis reports the failure is not reproducible.

CI report (one failing run): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=104543&sha=c7e52c67c3e72abb41d09ffc46b46d11130d632a&name_0=PR&name_1=Stateless%20tests%20%28amd_msan%2C%20WasmEdge%2C%20parallel%2C%202%2F2%29

The DDL-race bug class this test targets (use-after-free / read-only races on concurrent DROP/CREATE) is already covered by the debug, ASan, TSan and UBSan builds. MSan (uninitialized-memory detector) adds no unique coverage here, so exclude it, mirroring the existing no-debug tag.

No related open issue found.

Version info

  • Merged into: 26.7.1.587 (included in 26.7 and later)
  • Backported to: 26.6.5.76

The test is a concurrent DROP/CREATE stress loop (25 iterations, ~200
clickhouse-client startups). Under MSan the instrumented startup cost
pushes the wall-clock time into the tail (avg 315s, max 543s when it
passes), and rare runs exceed the per-test timeout and are killed. All
3 timeout failures in the last 30 days are on the amd_msan build only;
0 on any other build. The rerun-diagnosis reports the failure is not
reproducible.

The DDL-race bug class this test targets (use-after-free / read-only
races on concurrent DROP/CREATE) is already covered by the debug, ASan,
TSan and UBSan builds. MSan (uninitialized-memory detector) adds no
unique coverage here, so exclude it, mirroring the existing no-debug tag.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

groeneai commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? The failure is a wall-clock Timeout!, not a query error. Deterministic trigger: the MSan-instrumented build makes ~200 client startups slow enough that tail runs cross the per-test timeout. CIDB: 3/3 failures (30d) are amd_msan only, all Timeout!, 0 on any other build.
b Root cause explained? The test loops 25x, each iteration doing ~8 clickhouse-client invocations (CREATE x4 + DROP x3 + DROP DATABASE). Under MSan, per-process startup is heavily instrumented; passing runs already average 315s and peak 543s on amd_msan (vs ~45s on arm_binary). Tail runs exceed the per-test timeout and the runner kills the leftover client group.
c Fix matches root cause? Yes. The slowness is MSan-instrumentation-specific and adds no coverage this test needs, so excluding MSan (no-msan) removes exactly the build where it times out, matching the existing no-debug exclusion.
d Test intent preserved / new tests added? Yes. The concurrent-DROP/CREATE DDL-race intent stays fully exercised on debug, ASan, TSan and UBSan builds. MSan (uninitialized-memory) cannot catch the use-after-free / read-only race this test targets, so no coverage is lost.
e Both directions demonstrated? Metadata-only tag change; no source build. no-msan is a recognized skip tag in tests/clickhouse-test (maps to the msan build flag; used by 251 other stateless tests). With the tag, the test is skipped on amd_msan (no timeout possible); without it, the run times out as shown in CIDB.
f Fix is general across code paths? N/A (flaky test setting fix, not a code bug).
g Fix generalizes across inputs? N/A (flaky test setting fix, not a code bug).
h Backward compatible? N/A (flaky test setting fix, not a code bug).
i Invariants and contracts preserved? N/A (flaky test setting fix, not a code bug).

Session id: cron:clickhouse-worker-slot-4:20260706-231000

@groeneai

groeneai commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

cc @Algunenano — could you review? Adds no-msan to 01516_drop_table_stress_long: the DDL-race stress loop only times out on the MSan build (all 3 failures in 30d are amd_msan, 0 elsewhere), and its bug class is already covered by debug/ASan/TSan/UBSan. Mirrors the existing no-debug tag.

@clickhouse-gh

clickhouse-gh Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e5c37cb]

Summary: ✅


AI Review

Summary

This PR adds no-msan to 01516_drop_table_stress_long so the concurrent DROP/CREATE stress test no longer runs on the MSan lane where repeated clickhouse-client startups are hitting the wall-clock timeout. I did not find a correctness, coverage, or PR-metadata issue in the current diff.

Missing context / blind spots
  • ⚠️ The current Praktika summary for PR #109587 was still empty at review time, so I could not confirm the final CI outcome on the new commit. The runtime rationale here comes from the linked historical MSan failure plus the PR's validation notes.
Final Verdict

✅ No blocking issues from review.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 7, 2026
@tiandiwonder tiandiwonder added the can be tested Allows running workflows for external contributors label Jul 7, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 85.88% 85.89% +0.01%
Functions 91.48% 91.48% +0.00%
Branches 78.45% 78.49% +0.04%

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

Newly covered by added/modified tests: 96 line(s), 5 function(s) across 43 file(s) · Details

Top files
  • src/Common/ColumnsHashing.h: 8 line(s), 2 function(s)
  • src/Functions/FunctionsCodingIP.cpp: 5 line(s)
  • src/Functions/flipCoordinates.cpp: 5 line(s)
  • src/Storages/StorageFilesystem.cpp: 5 line(s)
  • src/AggregateFunctions/AggregateFunctionDistinctDynamicTypes.cpp: 4 line(s), 1 function(s)

Full report

@groeneai

groeneai commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — e5c37cb

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

All real CI jobs are green (Fast test, full Stateless matrix incl. all sanitizers + flaky check, all Builds, LLVM Coverage, Finish Workflow, Mergeable Check). The only red check is the private ClickHouse Inc sync.

Check / test Reason Owner / fixing PR
CH Inc sync — CH Inc sync (private, not actionable)

Session id: cron:our-pr-ci-monitor:20260707-100000

@alexey-milovidov
alexey-milovidov merged commit 26157a1 into ClickHouse:master Jul 7, 2026
342 of 344 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 7, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Sep 8, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Sep 8, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 8, 2026
Backport #109587 to 26.6: Do not run 01516_drop_table_stress_long under MSan
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 11, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…p-table-stress-no-msan

Do not run 01516_drop_table_stress_long under MSan
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-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-ci pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo v26.6-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants