Skip to content

Tag 05307_json_shared_typed_paths_concurrent_readers with no-msan - #127865

Merged
Avogar merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/05307-no-msan
Oct 28, 2026
Merged

Avogar merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/05307-no-msan

Conversation

@groeneai

@groeneai groeneai commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #127000

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

Test-only change, no changelog entry required.

Description

05307_json_shared_typed_paths_concurrent_readers (new in #127000) timed out in Stateless tests (amd_msan, parallel, 3/3) on master:

Failing job: https://github.com/ClickHouse/ClickHouse/actions/runs/40338606213/job/121633043306 (Timeout! at 600.25 s, the only failing test of the job)

Under MSan it runs close to the 600 s per-test timeout: 470 s median and 532 s max over the 6 passing master runs since the merge, against 16 s in amd_debug and 17 s in amd_release. The failing job's query_log puts the time in the fixture and the reads, not in one query: the six single-threaded INSERT ... SELECT that parse 640 000 JSON documents take 246 s, the 18 comparison queries over both tables about 300 s, the two OPTIMIZE FINAL 22 s. The SHARED table and its plain-type twin cost the same, so this is MSan's cost on the JSON code, and it does not depend on the randomized settings (the job's rerun with another draw took 566 s).

This tags the test no-msan with a one-line reason, as done for other tests that time out under MSan (01721_join_implicit_cast_long, #115050). The body and the reference are unchanged, so it still runs under ASan, UBSan and TSan, and the other SHARED typed path tests (at most 470 s under MSan, none has failed) keep running under MSan. Shrinking the fixture enough to fit would often leave each part a single granule (the randomized index_granularity goes up to 65536), i.e. a single read task, which removes the concurrency the test exists for.

Validation with the CI binaries of the failing commit: on the MSan server the test runs before the change and is skipped after it (not running for current build); the debug and ASan+UBSan binaries still run it and pass.


Workflow [PR]
Sync PR [sync-upstream/pr/127865]

Version info

  • Merged into: 26.11.1.844-master (included in 26.11 and later)
  • Backported to: 26.10.3.24

Under MSan the test runs at 80-90% of the 600 s per-test timeout (master
amd_msan: median 470 s, max 532 s over 6 passing runs, one Timeout! at
600.25 s), against 16 s in amd_debug. The failing job's query_log: six
single-threaded INSERTs parsing 640 000 JSON documents 246 s, 18 comparison
queries over both tables ~300 s, OPTIMIZE FINAL 22 s; the SHARED table and
its plain twin cost the same, and the time does not depend on the random
settings draw. The body and reference are unchanged, so ASan, UBSan, TSan
and the other builds keep running it.

Failing job: https://github.com/ClickHouse/ClickHouse/actions/runs/40338606213/job/121633043306

Related: ClickHouse#127000
Related: ClickHouse#115050

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

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings on the test header change).

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are
terminal per finding.

Session id: cron:clickhouse-review-slot-9:20261026-172500

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? The timeout is load-dependent and seen in CI (1 of 7 master MSan runs at 600.25 s; the 6 passing runs took 150-532 s, median 470 s). The change's claim is deterministic: on one MSan server (CI binary of cf981ac) the test runs before it and is skipped after it.
b Root cause explained? 640 000 JSON parses plus 18 full reads of two tables cost about 246 s + 300 s + 22 s under MSan, 30-90x a debug build, against the 600 s per-test budget. Independent of the randomized settings.
c Fix matches root cause? The cost is MSan-only, so the test skips MSan, as for other tests that time out there. No bound widened, no data reduced, no randomization disabled.
d Test intent preserved / new tests added? Body and reference unchanged; every non-MSan job still runs it. The other SHARED typed path tests keep running under MSan.
e Both directions demonstrated? MSan: [ OK ] 93.22 sec before, [ SKIPPED ] not running for current build after. Debug 3/3 OK and ASan+UBSan OK after.
f Fix is general across code paths? N/A (test header only).
g Fix generalizes across inputs (params/datatypes/wrappers)? N/A (no code). The runner's own tag parser gives {long, no-msan}; skip only for msan builds.
h Backward compatible? (maintainer-approved exception only) Yes, test header only.
i Invariants and contracts preserved? Only the -- Tags: line is parsed, so the reason line is a comment; long keeps its effects; stress jobs ignore no-<build> tags and still run it under MSan.

Session id: cron:clickhouse-impl-slot-6:20261026-170900

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @Avogar, could you review this and add the can be tested label so CI runs? It tags your new 05307_json_shared_typed_paths_concurrent_readers test no-msan: under MSan it takes 470 s median against the 600 s per-test timeout and timed out once on master, while every other build still runs it unchanged.

@clickhouse-gh

clickhouse-gh Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c97b10b]

Summary: ✅


AI Review

Summary

PR #127865 adds no-msan to 05307_json_shared_typed_paths_concurrent_readers after a 600.25-second MSan timeout. The SQL and expected results are unchanged, and the runner preserves coverage on other builds and in stress runs. No actionable findings.

Final Verdict

Status: ✅ Approve.

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-testing Test content only (no production code). labels Oct 26, 2026
@Avogar Avogar added the can be tested Allows running workflows for external contributors label Oct 27, 2026
@Avogar
Avogar added this pull request to the merge queue Oct 28, 2026
Merged via the queue into ClickHouse:master with commit 22f15b5 Oct 28, 2026
526 of 528 checks passed
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 28, 2026
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 29, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Oct 29, 2026
clickhouse-gh Bot added a commit that referenced this pull request Oct 29, 2026
Backport #127865 to 26.10: Tag 05307_json_shared_typed_paths_concurrent_readers with no-msan
huldarchen pushed a commit to huldarchen/ClickHouse that referenced this pull request Nov 2, 2026
Under MSan the test takes up to 445 s of the 600 s per-test timeout on
master (amd_msan: median 235 s over 37 passing runs in 30 days), against
7 s in amd_debug, and it times out in the private CI's MSan jobs on object
storage. Smaller tables do not fit it: on one MSan server half the rows
took 0.85x the time and a quarter 0.74x, because most of the cost is per
query, not per row. The body and reference are unchanged, so ASan, UBSan,
TSan and the other builds keep running it, and under MSan the many-task
SHARED read path stays covered by 05303_json_shared_typed_paths_s3.

445 s run: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=2fbf0f458e338daafbd720d14069681c51b557a8&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_msan%2C%20parallel%2C%202%2F3%29

Related: ClickHouse#127000
Related: ClickHouse#127865

Co-Authored-By: Claude Opus 5.5 <[email protected]>
leshikus pushed a commit that referenced this pull request Nov 13, 2026
@clickhouse-gh clickhouse-gh Bot added comp-json-datatype JSON/Dynamic/Object datatype: semi-structured column storage, typed and dynamic paths, sub-object... and removed comp-testing Test content only (no production code). labels Nov 22, 2026
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 comp-json-datatype JSON/Dynamic/Object datatype: semi-structured column storage, typed and dynamic paths, sub-object... 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.10-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants