Skip to content

Backport #100283 to 25.8: Validate Iceberg metadata file path for null bytes - #115495

Merged
alexey-milovidov merged 2 commits into
25.8from
backport/25.8/100283
Aug 22, 2026
Merged

alexey-milovidov merged 2 commits into
25.8from
backport/25.8/100283

Conversation

@robot-ch-test-poll

@robot-ch-test-poll robot-ch-test-poll commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #100283
Cherry-pick pull-request #115429

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

@robot-ch-test-poll robot-ch-test-poll 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 Aug 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [f09bf39]

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115495&sha=6fbabf8cbae7eefe7d6619fe4a8f6398094c6bf8&name_0=BackportPR&name_1=Stress%20test%20%28amd_tsan%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

This backport only adds two lines of null-byte validation in src/Storages/ObjectStorage/DataLakes/Iceberg/Utils.cpp, so the Stress test (amd_tsan) failure cannot come from it. The server dies on Logical error: Unexpected return type from concat. Expected Nullable(String). Got String. thrown from DB::ExpressionActions::execute while running a JOIN query (SELECT t2.id || '_1' AS id, t1.val ...).

CIDB shows the very same fatal message on the plain 25.8 branch itself (pull_request_number = 0) on 2026-07-31, 2026-08-04, 2026-08-05 (×2), 2026-08-06, 2026-08-07, 2026-08-09 (×2), 2026-08-15 and 2026-08-19, plus several other 25.8 backport PRs (#115283, #115207, #114295, #112990, #112333). Tracking issue: #115177 (ExpressionActions execution failed in PipelineExecutor, still open, no fix yet).

I have merged the latest 25.8 into the branch so CI reruns on a current base.

@groeneai

Copy link
Copy Markdown
Collaborator

The failure is not from this backport. It is the 25.8-only join_use_nulls USING nullability bug you identified, tracked as #115177.

The fix already exists and is merged on master: #92251 (b3cf84f4f2b5, @ vdimir, 2025-12-19). So there is nothing for me to author on master, and per your instruction on #111910 I will not hand-author a backport/25.8/... branch. The remaining step is a label: please apply v25.8-must-backport to #92251. I asked for this on #112990 (2026-08-03) and on #114295 (2026-08-18); it still carries only pr-bugfix, pr-synced-to-cloud.

Measured against the current 25.8 tip 46297556f3ac:

Either label expands to a single PR against 25.8; every active 26.x branch already has both commits.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status update: the BackportPR workflow for commit f09bf39a is now fully green — 17750 tests, 0 failures, including Stress test (amd_tsan), which was the only previous red. That failure was the 25.8-wide Unexpected return type from concat. Expected Nullable(String). Got String. flake tracked in #115177, not anything from this backport; it simply did not reproduce on the rerun after the 25.8 merge.

The backport itself is unchanged and minimal — the two lines of null-byte validation in src/Storages/ObjectStorage/DataLakes/Iceberg/Utils.cpp from #100283. The branch is 7 commits behind 25.8 but merges cleanly and is green, so no further update is needed here; nothing to push.

@groeneai's remaining ask is unrelated to this PR and is a maintainer decision: applying v25.8-must-backport to #92251 so the underlying join_use_nulls USING nullability fix reaches 25.8 and #115177 stops flaking on every 25.8 backport. That PR still carries only pr-bugfix and pr-synced-to-cloud.

@alexey-milovidov
alexey-milovidov merged commit 7c803d9 into 25.8 Aug 22, 2026
33 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/25.8/100283 branch August 22, 2026 17:46
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