Skip to content

Backport #125893 to 26.7: Fix a crash and lost rows on INSERT when a row policy of a table read by a materialized view uses IN <source table> - #126730

Merged
clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/125893
Oct 21, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/125893

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #125893
Cherry-pick pull-request #126683

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.7.36.11

…row policy of a table read by a materialized view uses `IN <source table>`
@robot-ch-test-poll3 robot-ch-test-poll3 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Oct 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [5c341d4]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=126730&sha=22f46182cd5ff5b55dc955ef5c376b289677b650&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 (04033_tpc_ds_q64 failed with MEMORY_LIMIT_EXCEEDED – total server memory limit, chosen by OvercommitTracker in FillingRightJoinSide; unrelated to this backport) and provide a fix in a separate PR. If the fix is already in progress, link it here. I merged the latest 26.7 into this branch to re-run CI.

@groeneai

Copy link
Copy Markdown
Collaborator

This is the same runner limit as in #126086 (comment), and the fix is already merged on master: #111789 moved this job from the 64 GiB AMD_MEDIUM_CPU runner to the 128 GiB one on 2026-07-25, three days after 26.7 was cut, so 26.7 (ci/defs/job_configs.py:690) still caps the server at maximum: 44.83 GiB. 04033_tpc_ds_q64 was only the query OvercommitTracker chose to stop, and it passed 5 of 5 reruns.

In the last 30 days, all 20 (total) memory limit exceeded failures of this job were on 26.7 (the branch and 11 backport PRs), all at 44.83 GiB, with 8 different victim tests; no other branch or PR had one.

So there is no separate fix to write on master. It goes away on 26.7 only if #111789 is backported there (v26.7-must-backport), which I can't do: I don't have permission to add labels, and I don't open release-branch PRs.

@clickhouse-gh
clickhouse-gh Bot merged commit 69342e8 into 26.7 Oct 21, 2026
41 of 42 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/125893 branch October 21, 2026 13:21
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-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants