Skip to content

Fix incorrect coordination mode for empty ranges in parallel replicas local planning.#87700

Merged
devcrafter merged 1 commit intoClickHouse:masterfrom
zoomxi:fix_diff_coordinator_mode
Sep 26, 2025
Merged

Fix incorrect coordination mode for empty ranges in parallel replicas local planning.#87700
devcrafter merged 1 commit intoClickHouse:masterfrom
zoomxi:fix_diff_coordinator_mode

Conversation

@zoomxi
Copy link
Copy Markdown
Contributor

@zoomxi zoomxi commented Sep 26, 2025

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Parallel replicas read mode could be chosen incorrectly if there are no data to read after applying index analysis. Closes #87653

@zoomxi
Copy link
Copy Markdown
Contributor Author

zoomxi commented Sep 26, 2025

cc @devcrafter

@devcrafter devcrafter self-assigned this Sep 26, 2025
number_of_current_replica.value_or(client_info.number_of_current_replica),
context->getClusterForParallelReplicas()->getShardsInfo().at(0).getAllNodeCount()};

extension.sendInitialRequest(CoordinationMode::Default, result.parts_with_ranges, /*mark_segment_size=*/1);
Copy link
Copy Markdown
Member

@devcrafter devcrafter Sep 26, 2025

Choose a reason for hiding this comment

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

CoordinationMode::Default 🤦

@devcrafter devcrafter added the can be tested Allows running workflows for external contributors label Sep 26, 2025
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Sep 26, 2025

Workflow [PR], commit [ea0f10e]

Summary:

job_name test_name status info comment
Finish Workflow failure
python3 ./ci/jobs/scripts/workflow_hooks/new_tests_check.py failure

@clickhouse-gh clickhouse-gh bot added the pr-bugfix Pull request with bugfix, not backported by default label Sep 26, 2025
Copy link
Copy Markdown
Member

@devcrafter devcrafter left a comment

Choose a reason for hiding this comment

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

LGTM, let's check tests

@devcrafter devcrafter added this pull request to the merge queue Sep 26, 2025
Merged via the queue into ClickHouse:master with commit 9f15c7c Sep 26, 2025
239 of 242 checks passed
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 26, 2025
@zoomxi zoomxi deleted the fix_diff_coordinator_mode branch September 27, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-bugfix Pull request with bugfix, not backported by default 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.

Fuzzing 02950_part_offset_as_primary_key.sql with parallel replicas

3 participants