Repository navigation
Conversation
…l replicas The test greps the client's `send_logs_level = 'test'` output for the `Reading tokens ... from part ...` lines and expects one single-node index analysis over the three parts. In the `ParallelReplicas` stateless lane the server profile enables parallel replicas. When the coordinator hands parts to a follower replica, the follower reads the text index tokens again with its own empty cardinality cache, and its forwarded log lines add 2 or 3 lines after the expected three. Which replica gets parts is a race, so reruns pass. Two follower paths were observed: with the coordinator-only index analysis in effect the follower reads only the parts it was given, at read time; when the skip does not apply (for example with projection support active for count()) the used follower analyzes all three parts at plan time. Pin `enable_parallel_replicas = 0` in the SETTINGS of the logged query only, so the rest of the test keeps running with parallel replicas in that lane. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (0 findings). Session id: cron:clickhouse-review-slot-10:20261003-130052 |
|
Workflow [PR], commit [6d31790] Summary: ❌
AI ReviewSummaryThis PR makes Final VerdictStatus: ✅ Approve |
CI finish ledger - 6d31790Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
All 160 checks completed; CIDB has no other Session id: cron:our-pr-ci-monitor:20261003-160141 |
|
Superseded by #124500 (same one-line change). |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
Related: #122853
04266_text_index_tokens_cardinality_orderis flaky inStateless tests (arm_binary, ParallelReplicas, s3 storage, parallel), the PR-only lane added by #122853: 7 failed and 39 passed runs as of 2026-10-03, the failures on 7 unrelated PRs, for example PR #123531. The output has the expected threeReading tokens ... from partlines, then 2 or 3 extra ones.The test greps the client's
send_logs_level = 'test'output and expects one index analysis over the three parts. In this lane the server profile enables parallel replicas. When the coordinator gives parts to a follower replica, the follower reads the text index tokens again with its own empty cardinality cache, and its log lines are forwarded to the client. Whether a follower gets parts depends on timing, so reruns pass.The change sets
enable_parallel_replicas = 0in theSETTINGSof the one logged query. The rest of the test, including the firstcount(), still runs with parallel replicas in that lane.Validation on a local server with the lane's three-replica loopback cluster (debug build):
parallel_replicas_local_plan = 0, 0/50 without parallel replicas;system.query_log: the fixed query has no secondary queries. Removing only the new setting brings the failures back (80/80).Workflow [PR]
Sync PR [sync-upstream/pr/123688]