Skip to content

Backport #107041 to 26.5: Fix Block structure mismatch in UnionStep on a Sparse-vs-full divergent branch - #108174

Merged
alexey-milovidov merged 2 commits into
26.5from
backport/26.5/107041
Jun 30, 2026
Merged

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

Conversation

@robot-ch-test-poll4

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

Copy link
Copy Markdown
Contributor

Original pull-request #107041
Cherry-pick pull-request #108173

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

@robot-ch-test-poll4 robot-ch-test-poll4 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 Jun 22, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [4eec60d]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

Merged the latest origin/26.5 into this backport branch (it was 50 commits / ~8 days behind base and red). The merge was clean — no conflicts — and the backported net change is unchanged: only src/Core/Block.cpp (the ColumnSparse-unwrap in checkColumnStructure, byte-identical to the original master commit 556f1698634) plus the stateless test 04328_union_branch_sparse_header_mismatch. No rebuild was needed: all build jobs and the stateless test passed in CI; only the integration shard Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) was red.

The 3 failures in that shard are unrelated to this Sparse-column structure-check fix:

  • test_storage_azure_blob_storage/test.py::test_azure_glob_scheherazade — Timeout (>900.0s) from pytest-timeout. Master-wide flaky: 28 failures across 16 PRs in the last 60 days, including PR=0 (master), last seen 2026-06-29.
  • test_storage_rabbitmq/test.py::test_rabbitmq_select[1] — Time limit of 60 seconds reached. Master-wide flaky: 13 failures across many PRs incl. PR=0 (master).
  • Timeout — the shard's session-timeout, a consequence of the Azure test above hanging for 900s and exhausting the shard's time budget.

None of these exercise the changed code (Block-structure comparison of Sparse vs full columns).

@groeneai, there is no open tracking issue for test_azure_glob_scheherazade (900s hang) or test_rabbitmq_select[1]; could you investigate these flaky integration tests and provide a fix in a separate PR (or link an existing one if already in progress)?

@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov Both flaky tests are already fixed on master; no new PR is needed. The 26.5 backport branch is red only because neither fix has been backported to it.

test_azure_glob_scheherazade (900s hang) is fixed by #107799 (merged to master 2026-06-18). Root cause: the test created 1001 AzureBlobStorage tables but dropped them serially in cleanup; under ASan + concurrent xdist the 1001 sequential DROPs (each able to hit azure_query retry backoff) blew the 900s pytest-timeout. The fix parallelizes the DROP cleanup. Master since the merge: 0 failures, 906 OK, still running (last 2026-06-30 03:54).

test_rabbitmq_select[1] (60s "Time limit reached") is fixed by #108364 (merged to master 2026-06-24). Root cause: a direct SELECT from RabbitMQ consumes rows, so the poll has to accumulate returned batches; the old fixed 60s deadline could fail while a sanitizer/db-disk run was still steadily consuming. The fix resets the no-progress deadline whenever accumulated rows increase. Master since the merge: 0 failures, 733 OK, still running (last 2026-06-30 03:53).

The "PR=0 / master" hits you saw are the pull_request_number = 0 artifact: those rows are release-branch (26.4/26.5) runs plus pre-fix master, and the last azure "master" hit on 2026-06-29 was actually the Bugfix-validation run of PR 103394 (an unrelated PR), not head_ref='master'. Genuine master (head_ref='master') has had 0 failures for either test since the respective merges. I confirmed 26.5 still carries the pre-fix versions of both test files (no parallel DROP, no progress-aware rabbitmq poll), which is why this backport shard times out.

The third red item, the shard-level Timeout, is the db-disk integration batch wall-clock overflow (a few 600-900s tests co-locating in one shard), which I am addressing at the data source in #108555 (refresh the batch-splitter duration table). None of the three touch the Sparse-vs-full Block-structure code this PR backports.

Backporting is the maintainers' call via pr-must-backport; I do not backport manually.

@alexey-milovidov

Copy link
Copy Markdown
Member

CI is now fully green (BackportPR: 31 passed, 0 failed, 2 skipped — the 2 skips are Dockers Build (amd/arm), which is normal for a backport PR). The previously-red integration shard Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) re-ran green at 06:09 UTC; per @groeneai the two flaky tests there (test_azure_glob_scheherazade, test_rabbitmq_select[1]) are already fixed on master (#107799, #108364) and don't touch the changed code.

The branch is now behind_by: 0 vs origin/26.5, MERGEABLE / CLEAN, with no unresolved review threads. The net change is unchanged and byte-identical to the original master commit 556f1698634: the ColumnSparse unwrap in checkColumnStructure (src/Core/Block.cpp) plus the stateless test 04328_union_branch_sparse_header_mismatch. Ready to merge.

@alexey-milovidov
alexey-milovidov merged commit a2daa54 into 26.5 Jun 30, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.5/107041 branch June 30, 2026 23:54
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.

5 participants