Repository navigation
Keep the ProfileEvents-checked reads of the string filter tests off parallel replicas - #124911
Conversation
…arallel replicas In the ParallelReplicas configuration the coordinator hands mark ranges to whichever replica asks first, so a remote replica sometimes reads every mark of the measured query. That replica counts StringValueFilterValuesChecked/Replaced/BytesSkipped on its own query_log row (is_initial_query = 0, current_database = 'default'), which the tests' current_database = currentDatabase() filter drops, so the checked row reads 0. Seen in the failing jobs' own query_log: every initiator row with 0 had a secondary row carrying the events (e.g. 0/0 on the initiator, 100000/99000 on the secondary). Run exactly the measured reads with enable_parallel_replicas = 0, as ClickHouse#124528 did for the columns cache tests. The other reads of these tests keep running under parallel replicas in that configuration. 05325 asserts 0 and cannot fail this way, but a remote read made it pass whatever the guard does, so it is pinned too. 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 (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261009-124400 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261009-121900 |
|
Workflow [PR], commit [cbfc4e1] Summary: ❌
AI ReviewSummaryThis PR makes four Final Verdict
|
CI finish ledger - cbfc4e1Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
The four changed tests passed in every lane that ran them, including Session id: cron:our-pr-ci-monitor:20261009-170013 |
d0c6d55
…d_step_order off parallel replicas The test compares `RowsReadByPrewhereReaders` with `SelectedRows` on the initiator's `query_log` row. In the `ParallelReplicas` lane the initiator's `SelectedRows` covers the whole read, while a remote replica that wins marks counts its reads on its own row (`current_database = 'default'`), which the `current_database = currentDatabase()` filter drops. The numerator then shrinks and `read_order_index_first` flips from 0 to 1. Initiator plus remote rows always give the expected ratio, so the replicas read in the same PREWHERE step order. Run only the four measured reads with `enable_parallel_replicas = 0`, as ClickHouse#124911 did for the string filter tests; the other reads keep running under parallel replicas in that lane. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #124528
Related: #123790
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Three string filter tests assert
StringValueFilter*ProfileEvents of one read fromsystem.query_logand sometimes read0in theParallelReplicaslane, e.g.05055_string_filters_move_to_prewhereon #124776: report. In 30 days ofStateless tests (arm_binary, ParallelReplicas, s3 storage, parallel), which runs on every PR since #123790:05233_string_filters_fixed_string_constantfailed 7 of 52 runs,05055_string_filters_during_scan_merge_tree4 of 52,05055_string_filters_move_to_prewhere3 of 52. The coverage lane relabels such failures asOK(14 more there, one on master).The lane enables parallel replicas for every query, so a remote replica on the same server sometimes reads all marks of the measured read. It counts the events on its own
query_logrow (current_database = 'default'), which the tests'current_database = currentDatabase()filter drops. The failing jobs'query_logartifacts confirm it: each initiator row with0had a secondary row carrying the events.The change runs only the measured reads with
enable_parallel_replicas = 0, as #124528 did for the columns cache tests; the other reads keep running under parallel replicas in that lane.05325_string_filters_columns_cache_guardhas the same oracle but asserts0, so in that lane it passed whatever the guard did; it is pinned too. No reference changes.Validation on a local
ParallelReplicasrig, same binary: unmodified, the three tests fail 13 of 90 runs, and 48 of 60 with a failpoint that delays the local replica; fixed, all four pass 120/120 and 80/80, plus 200/200 with randomized settings and no parallel replicas.Workflow [PR]
Sync PR [sync-upstream/pr/124911]
Version info
26.10.1.1957-master(included in26.10and later)