Skip to content

Tag 03657_gby_overflow_any_sparse as no-parallel-replicas - #125060

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix-03657-no-parallel-replicas
Oct 10, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix-03657-no-parallel-replicas

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

With parallel replicas the order in which rows reach GROUP BY depends on how the coordinator assigns ranges, so group_by_overflow_mode = 'any' with max_rows_to_group_by = 100 keeps a different set of keys (32560..32569 instead of 0..9). With the same randomized settings it failed in 246 of 247 reruns. The test was already disabled for parallel replicas in #90858, then re-enabled in ab50bbc1a4d.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=123435&sha=30bded508da21d41e57e933e3f8f3d81338e9b51&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29
Related: #123435
Related: #90857

Changelog category (leave one):

  • CI Fix or improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/125060]

Version info

  • Merged into: 26.10.1.2014-master (included in 26.10 and later)

With parallel replicas the order in which rows reach `GROUP BY` depends on
the coordinator's assignment of ranges, so `group_by_overflow_mode = 'any'`
with `max_rows_to_group_by = 100` keeps a different set of keys (e.g. 32560..32569
instead of 0..9). The test was blacklisted for parallel replicas before
(#90858) and re-enabled in `ab50bbc1a4d`.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/PRs/123435/30bded508da21d41e57e933e3f8f3d81338e9b51/pr/result_stateless_tests_arm_binary_parallelreplicas_s3_storage_parallel.json
PR: #123435

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1312bff]

Summary: ✅


AI Review

Summary

This PR suppresses a flaky ParallelReplicas failure by tagging 03657_gby_overflow_any_sparse as no-parallel-replicas, because group_by_overflow_mode = 'any' keeps a different key set when rows arrive in a different order. I don’t think the broad skip is the right fix: the test can pin enable_parallel_replicas = 0 on the affected SELECT and keep running in the ParallelReplicas lane, so this needs one change before merge.

Findings

⚠️ Majors

  • [tests/queries/0_stateless/03657_gby_overflow_any_sparse.sql:1] The new no-parallel-replicas tag removes the whole test from the dedicated ParallelReplicas job, even though only this single SELECT becomes non-deterministic under parallel replicas. This drops coverage more broadly than necessary and goes against the usual stateless-test pattern of pinning enable_parallel_replicas = 0 only on the assertion that needs deterministic local reads.
    Suggested fix: remove the tag and add enable_parallel_replicas = 0 to the SETTINGS clause of the SELECT.
Final Verdict

Needs changes before merge.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 10, 2026
@@ -1,3 +1,6 @@
-- Tags: no-parallel-replicas

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This no-parallel-replicas tag drops the whole test from the dedicated ParallelReplicas lane, but the only thing that actually becomes non-deterministic here is this one SELECT. Can we keep the test in that lane and pin enable_parallel_replicas = 0 in the query SETTINGS instead? We already use that narrower pattern in stateless tests when parallel replicas only changes the asserted output, and it preserves coverage instead of blacklisting the test completely.

@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Oct 10, 2026
@alexey-milovidov alexey-milovidov self-assigned this Oct 10, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 10, 2026
Merged via the queue into master with commit 6c0dc70 Oct 10, 2026
163 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-03657-no-parallel-replicas branch October 10, 2026 15:56
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 10, 2026
@clickhouse-gh clickhouse-gh Bot added comp-aggregation GROUP BY / aggregation framework (hash tables, spilling, external aggregation). and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-aggregation GROUP BY / aggregation framework (hash tables, spilling, external aggregation). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants