Skip to content

Backport #113563 to 26.6: Do not analyze the shared row policy AST in place in Merge - #114310

Merged
alexey-milovidov merged 4 commits into
26.6from
backport/26.6/113563
Aug 16, 2026
Merged

alexey-milovidov merged 4 commits into
26.6from
backport/26.6/113563

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #113563

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.6.3.43

@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Aug 11, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [b45813f]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) ERROR

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged 26.6 into the branch (it had fallen 15 commits behind) to get a fresh CI run. Both reds on 6c4657c7 are unrelated to this backport (it only changes StorageMerge row-policy AST handling):

@groeneai, could you investigate both and provide fixes in separate PRs — the MergeTreeTransaction race on 26.6 (or a backport of whatever fixed it on master), and the integration-test runner stall? If either fix is already in progress, please link it here.

@groeneai

Copy link
Copy Markdown
Collaborator

Both are already root-caused. Neither needs fresh investigation; one needs a decision from you.

1. The MergeTreeTransaction race on 26.6. Fixed on master by #103158 (fbac5176, merged 2026-07-07), which deletes the two unguarded caller-context clears in executeASTFuzzerQueries. Those lines are still present on 26.6: executeQuery.cpp:2113-2114 is exactly the frame in the report, and fbac5176 is an ancestor of master and 26.7 but not of 26.6. CIDB agrees: the signature fired 73 times across 48 PRs in the 90 days before that merge and exactly twice since, both on 26.6 (2026-08-04 on the branch itself, plus this run), zero on master, 26.7, 26.5, 26.3 and 25.8.

That is also why #101319 looked fixed: closing it on 2026-07-12 was correct for master, but the issue never referenced #103158, so the missing backport stayed invisible.

I cannot open the backport myself, since release-branch backports go through the label per your 2026-07-27 note on #111910. I asked for v26.6-must-backport on #103158 on 2026-08-13: #103158 (comment). The label expands to 26.7 and 26.6; 26.7 already contains the commit, so only 26.6 gets a PR. The port conflicts in one hunk (the ProfileEvents extern block) and the resolution is written out in that comment, so the resulting pr-cherrypick PR needs no re-derivation. Applying the label is the whole remaining step.

2. The integration-test stall. This is the same runner-level wedge you flagged on #112625 on 2026-08-01. The job's outer container is given --memory of physical minus 2 GiB (59.8 of 61.8 GiB), and under --cgroupns=host the nested dockerd parents its containers at the host's /docker, a sibling of the job's own cgroup. So test containers are charged outside the job limit, overrun it, and starve the runner agent instead of producing a visible cgroup OOM. That is why the failure surfaces as several workers dying in the same millisecond followed by a heartbeat timeout, with no dmesg dump and no CIDB rows.

The fix is #112984, open since 2026-08-02: the job requests a private cgroup namespace and charges nested containers to a leaf bounded by the job's own limit. It has no CI runs at all, because it is a fork PR sitting on manual approve, so nothing has run on the current head (pushed 2026-08-09). A workflow approval there is what it needs.

Your rerun observation fits the mechanism: shard 5/6 module assignment is deterministic, since --dist=loadfile pins modules to workers and the module-set hash is identical across attempts, so the same peak recurs at the same point rather than being a random timeout.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Applied v26.6-must-backport to #103158, which requests the missing 26.6 TSAN-race backport. The only current red is the known runner-level stall in Integration 5/6; I have rerun that exact job: https://github.com/ClickHouse/ClickHouse/actions/runs/31770336179/job/94913163078. It is queued in the CI scheduler.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Approved the pending workflow for the runner-containment fix at #112984 (run https://github.com/ClickHouse/ClickHouse/actions/runs/31299101298). This addresses the CI-infrastructure follow-up identified above.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Rechecked the current head 2184d9a665c7: there are no unresolved review threads, the backport remains mergeable against the current 26.6 tip, and git diff --check is clean. The sole red is the repeated runner-level stall in Integration 5/6, not a failure of this three-file StorageMerge backport: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114310&sha=2184d9a665c730ebcf99de5e84cbbfe0fc6d746d&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%205%2F6%29

The runner-containment fix is being validated in #112984. No PR-source change is warranted.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Rechecked the current CI failure at https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114310&sha=b45813f5e9763d0001023f01ffe1c72a9959564a&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%205%2F6%29. It made progress through 63% of the shard, then the harness hit its 7800-second timeout and terminated the process group; post-processing reports OOM in dmesg. There is no failed test assertion or sanitizer finding attributable to this three-file StorageMerge backport.

The runner-containment fix remains under validation in #112984. No PR-source change is warranted for this infrastructure failure.

@alexey-milovidov
alexey-milovidov merged commit ffceb28 into 26.6 Aug 16, 2026
112 of 116 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.6/113563 branch August 16, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants