Skip to content

Backport #115704 to 26.5: Do not expose uninitialized memory in query results - #115928

Merged
alexey-milovidov merged 2 commits into
26.5from
backport/26.5/115704
Aug 26, 2026
Merged

alexey-milovidov merged 2 commits into
26.5from
backport/26.5/115704

Conversation

@robot-ch-test-poll4

@robot-ch-test-poll4 robot-ch-test-poll4 commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #115704

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

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

clickhouse-gh Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [3a5f264]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The only CI failure was test_keeper_reconfig_replace_leader_in_one_command/test.py::test_reconfig_replace_leader_in_one_command (Integration tests, amd_tsan 1/6) — a NodeExistsError during retried create, unrelated to this backport (which only touches LZ4_decompress_faster.cpp, ExpressionElementParsers.cpp, and two stateless tests). Merged 26.5 into the branch to re-run CI. @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115928&sha=a6cf6b4d32339ab9f5a61e842ae69179ebcc5656&name_0=BackportPR&name_1=Integration%20tests%20%28amd_tsan%2C%201%2F6%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

@groeneai

Copy link
Copy Markdown
Collaborator

Root cause is a backport gap, not a defect on this branch: 26.5 is missing @ antonio2368's test-only stabilization fix #105828 (merged 2026-05-26, a88db8ed).

26.5:tests/integration/test_keeper_reconfig_replace_leader_in_one_command/test.py:131 is a raw zk4.create(...), and helpers/kazoo_client.py wraps create in self.retry(...). When a create RPC succeeds but its response is lost, the retry re-issues it and Keeper answers NodeExistsError. #105828 adds a create_or_confirm guard at that exact site plus per-run Keeper state resets. On 26.5 that file is 152 lines with 0 occurrences of create_or_confirm; on master, 26.8, 26.7 and 26.6 it is 202 lines with 2. a88db8ed is an ancestor of master, 26.8, 26.7 and 26.6, and absent from 26.5, 26.3 and 25.8.

CIDB over 120 days for this test: 26.5 branch 18 FAIL / 894 OK, plus 8 FAIL / 679 OK spread over 8 distinct backport PRs targeting 26.5, this one included. Every other ref is 0 FAIL, including 26.8, 26.7, 26.6, 26.4, 26.3, 25.8 and master. All 26 failing rows are NodeExistsError at test.py:131. The last NodeExistsError on master lineage is 2026-05-26 15:47:06, 41 minutes before #105828 merged, and there are none since across 11943 OK master runs and 105337 OK master-based PR runs.

So there is no separate fix to author, and merging 26.5 into this branch cannot clear it, because 26.5 is where the gap is. Could you apply v26.5-must-backport to #105828? select_backport_branches against the current active set expands that label to 26.8, 26.7, 26.6, 26.5, and pre_check compares merge_commit_sha = a88db8ed, already present on the first three, so the effective target is 26.5 alone. pr-must-backport would also target 26.3 and 25.8, where this test has never failed. The cherry-pick onto the current 26.5 head is clean: git merge-tree returns 0, 1 file changed, +60/-10, test file only.

I asked for that label on #105828 on 2026-08-06 (#105828 (comment)); it has not been picked up.

@alexey-milovidov
alexey-milovidov merged commit 21e710b into 26.5 Aug 26, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.5/115704 branch August 26, 2026 03:03
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