Skip to content

Make 04266_text_index_tokens_cardinality_order robust to parallel replicas - #124500

Merged
fm4v merged 1 commit into
masterfrom
fix-04266-parallel-replicas
Oct 10, 2026
Merged

fm4v merged 1 commit into
masterfrom
fix-04266-parallel-replicas

Conversation

@fm4v

@fm4v fm4v commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

The test asserts Reading tokens log lines emitted while reading text index granules. With parallel replicas the reads happen on the replicas, so the initiator does not see these lines and the test fails. The asserted query now sets enable_parallel_replicas = 0.

Related: #123994
Related: #123695

Changelog category (leave one):

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

Changelog entry:

...


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

Version info

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

@clickhouse-gh

clickhouse-gh Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2e712fa]

Summary: ✅


AI Review

Summary

This PR makes 04266_text_index_tokens_cardinality_order.sh opt out of parallel replicas only for the query whose send_logs_level = test output the test inspects. That matches the failure mode this PR is addressing: the Reading tokens assertion depends on a single local read path, while parallel replicas can add replica-side reads and extra forwarded log lines. Scoping enable_parallel_replicas = 0 to that one query keeps the behavioral check deterministic without changing the rest of the test, and I do not see unresolved correctness, metadata, or coverage issues in the patch.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-testing Test content only (no production code). labels Oct 7, 2026
@fm4v
fm4v enabled auto-merge October 9, 2026 23:06
@fm4v
fm4v added this pull request to the merge queue Oct 10, 2026
Merged via the queue into master with commit 5e5401e Oct 10, 2026
152 checks passed
@fm4v
fm4v deleted the fix-04266-parallel-replicas branch October 10, 2026 14:28
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 10, 2026
JTCunning pushed a commit to JTCunning/ClickHouse that referenced this pull request Nov 3, 2026
The bugs behind their `no-parallel-replicas` / `no-replicated-database` tags are fixed on master:
- `01660_join_or_any`: ClickHouse#123683
- `04653_bloom_filter_fixed_string_constant_scalar`: ClickHouse#118988
- `04819_dynamic_aggregate_function_state_version`: ClickHouse#123649
- `04825_quantile_deterministic_alter_add_modify_column`: ClickHouse#115393, ClickHouse#123070
- `04494_atomic_populate_materialized_view_parallel_replicas`: ClickHouse#124477
- `04266_text_index_tokens_cardinality_order`: ClickHouse#124500 already disables parallel replicas for the log-checked query

Related: ClickHouse#124015
@clickhouse-gh clickhouse-gh Bot added comp-text-index Full-text search: inverted/text index in MergeTree (tokenizers, posting lists, GIN-style index bu... 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-text-index Full-text search: inverted/text index in MergeTree (tokenizers, posting lists, GIN-style index bu... 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