Skip to content

Backport #119368 to 26.7: Do not deserialize unexpected packets in TCPHandler - #126086

Merged
PedroTadim merged 3 commits into
26.7from
backport/26.7/119368
Oct 19, 2026
Merged

PedroTadim merged 3 commits into
26.7from
backport/26.7/119368

Conversation

@robot-ch-test-poll2

@robot-ch-test-poll2 robot-ch-test-poll2 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #119368
Cherry-pick pull-request #125882

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

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Oct 15, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [5b421c1]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_asan_ubsan, distributed plan, parallel) FAIL
Server died FAIL cidb
Logical error: GroupingAggregatedTransform pushed bucket A twice (STID: 3994-4c1d) FAIL cidb

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=126086&sha=f8ef1816b017cf4df5a4b1eb8b736ddbc30836ea&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

00053_replicate_segfault, 03216_arrayWithConstant_limits and 01278_min_insert_block_size_rows_for_materialized_views failed with MEMORY_LIMIT_EXCEEDED (total server RSS ~44 GiB) in the ASan parallel job; they are unrelated to the TCPHandler change. 03216_arrayWithConstant_limits also fails on other 26.7 PRs (#124876, #125879). The master fix #111705 ("Reduce peak memory of test 03216_arrayWithConstant_limits") is not in 26.7, so backporting it is probably needed.

I merged the latest 26.7 into this branch to re-run CI.

@groeneai

Copy link
Copy Markdown
Collaborator

The fix is already on master, but not on 26.7. #111789 moved this job from the 64 GiB runner (AMD_MEDIUM_CPU) to AMD_LARGE (128 GiB) on 2026-07-25, three days after 26.7 was cut, and ci/defs/job_configs.py:690 on 26.7 still says AMD_MEDIUM_CPU. 00053 and 03216 hit the server-wide cap of that runner (current RSS: 44.42 GiB / 44.30 GiB, maximum: 44.83 GiB), and 01278 got Code: 241 in the same run on a query that should pass.

In the last 30 days this job hit the total memory limit in 13 of 410 runs on 26.7 and its backport PRs, and in 0 of 2,511 runs on master, 26.8, 26.9, 26.10 and their backport PRs. The victim changes from run to run (03742, 03216, 02481, 02477, 00053, 01278), so #111705 alone would fix only 03216, while #111789 covers all of them.

Neither PR has a backport label, and I don't open release-branch PRs myself. Could you add v26.7-must-backport to #111789, if 26.7 is still worth it now that the 26.10 release PR is open? I asked @ maxknv for the same in #116653 (comment) on 2026-10-07 and got no reply.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Thanks @groeneai. The re-run at a55cf6f failed the same way: Stateless tests (amd_asan_ubsan, distributed plan, parallel) lost its server at test 2892 with no sanitizer report or fatal log ("Unable to locate any ClickHouse server process"), inside a container limited to 64 GiB on AMD_MEDIUM_CPU. That points to the kernel OOM-killing the server, which is the runner-memory problem you described, not the TCPHandler change. Whether to backport #111789 (v26.7-must-backport) is a release-branch decision for a human maintainer, so I am leaving that label alone. I merged the latest 26.7 (5b421c1) to re-run CI.

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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants