Skip to content

Backport #112152 to 26.6: Keep the function name of a stack frame attributed to a libc++ __functional header - #114781

Merged
clickhouse-gh[bot] merged 6 commits into
26.6from
backport/26.6/112152
Aug 18, 2026
Merged

clickhouse-gh[bot] merged 6 commits into
26.6from
backport/26.6/112152

Conversation

@robot-ch-test-poll4

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

Copy link
Copy Markdown
Contributor

Original pull-request #112152

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

…ributed to a libc++ `__functional` header
@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 Aug 14, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [0edd780]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114781&sha=bc5812db64166fb0f5d2dfa614c1801cf5286f60&name_0=BackportPR&name_1=Stress%20test%20%28amd_tsan%29 and provide a fix in a separate PR. It matches the known issue #107619; #114849 appears to be an in-progress fix for the deferred-set build path.

@groeneai

Copy link
Copy Markdown
Collaborator

Investigated. Same sub-shape as the #114634 red, and the fix for it already exists in my open PR #114121, so a new PR is not needed. Two corrections to the triage.

What it is. test_60b8z2ev.tab, a MutatePlainMergeTreeTask on part all_1_6_1_12, predicate and(greater(x, 2), globalIn(y, __set_10512542761617820011_10269033236929630340)). STID 0250-41a5, so the #107619 error, but not the remote path: ReadFromRemote, clusterAllReplicas, ALL_CONNECTION_TRIES_FAILED and unavailable_shard each appear 0 times in clickhouse-server.final.log, against 2 for Not-ready Set and 174 for MutatePlainMergeTreeTask as controls. The entry point is statistics part pruning.

The run contains its own A/B. Four mutation tasks on that table ran the same failing subquery (Code: 153 ... modulo(2_UInt8, __table1.number), ILLEGAL_DIVISION):

part read statistics Code 153 propagated aborted
all_7_7_0_12 no yes no
all_8_8_0_12 no yes no
all_9_9_0_12 no yes no
all_1_6_1_12 yes, 8 reads of statistics.packed no yes

Only the part whose pruning read statistics swallowed the error (Failed to use statistics for part all_1_6_1_11, skipping statistics pruning for this part: Code: 153, MergeTreeDataSelectExecutor.cpp:790 on 26.6, :858 on master) and aborted 0.10s later at src/Functions/in.cpp:116. That is the discriminator my #114634 repro was missing.

#114849 is not integrated. It is closed as "already integrated: 702dd12854e9 is an ancestor of current master", but master...702dd128 reports diverged (master ahead 982, behind 1); its test tests/queries/0_stateless/04891_remote_in_unavailable_shard_unready_set.sql is 404 on master; and master's PreparedSets.cpp still carries the pre-PR text (Destructive fallback for non-clonable sources, 1 hit) and none of the new text (skip this speculative optimization and let, 0 hits). The NOT_IMPLEMENTED catch at PreparedSets.cpp:555 still falls through instead of returning nullptr. So the remote carrier is still open on master.

The fix for this carrier. #114121 declines an IN atom whose set is not yet built when the caller is StatisticsPartPruner, so the pruning pass never executes the subquery. The guard sits in tryPrepareSetIndexForIn and is function-name agnostic, so it covers globalIn here as well as the globalNullIn carrier it was written for. Open since 2026-08-10, awaiting review from hanfei1991 after I added the stateless reproducer he asked for.

StatisticsPartPruner.cpp and the swallowing catch both exist on 26.6, so a v26.6-must-backport label on #114121 once it merges would cover this branch. I will not hand-author a backport.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Current head baf52e5f has one zero-duration Integration 5/6 job error. The CI report contains no test failure and no downloadable artifacts; this is not actionable in this backport. All build jobs, both unit-test jobs, the stress test, and the other integration shards passed. The earlier deferred-set failure was already triaged separately in this discussion. No code change is needed here.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Rechecked current head 302cb538: the only red result is Integration 5/6, reported as a zero-second ERROR. The Praktika report has no failing test, CIDB link, or downloadable artifact, while all builds, unit tests, stress, and the other integration shards passed. The PR is mergeable and has no review threads; this infrastructure-only result requires no change to this backport. The earlier deferred-set failure remains separately tracked by #114121.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Rechecked the current head 3b8e5738: Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) is a zero-result job error. Its Praktika report has no failed test, CIDB link, or downloadable artifact; all actual test results for this backport are green. This is infrastructure-only and requires no code change in this PR.

@clickhouse-gh
clickhouse-gh Bot merged commit a44dad1 into 26.6 Aug 18, 2026
75 of 77 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/112152 branch August 18, 2026 03:15
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