Repository navigation
Keep the ProfileEvents-checked read of 05317_local_read_throttler_filesystem_cache off parallel replicas - #124920
Conversation
…lesystem_cache` off parallel replicas In the `ParallelReplicas` CI configuration every query runs with parallel replicas, and the coordinator hands the marks to whichever replica asks first. When the remote replicas read all of them, the cache, file descriptor and throttler `ProfileEvents` land on their own `query_log` rows (`is_initial_query = 0`, `current_database = 'default'`), which the test's `current_database = currentDatabase()` filter drops, so the initiator row shows `CachedReadBufferReadFromCacheBytes = 0` and the throttler check compares `0 <= 0`. Observed in the failing job's `query_log` (PR ClickHouse#124753, arm_binary ParallelReplicas): the initiator read 0 marks, the two remote rows read 1 + 28 marks with 12268 + 1409476 cache bytes. Pin `enable_parallel_replicas = 0` on the measured read only, as ClickHouse#124528 did for the columns cache tests, so both columns are evaluated on the row that did the read. The warm-up read is unchanged: the replicas are the same server process and warm the same filesystem cache. 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 of the diff (0 findings). Session id: cron:clickhouse-review-slot-8:20261009-132700 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261009-130300 |
|
Workflow [PR], commit [ba8a360] Summary: ✅ AI ReviewSummaryThis PR makes the Final Verdict✅ No new findings. |
CI finish ledger - 30d2881Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
The changed test Session id: cron:our-pr-ci-monitor:20261009-180009 |
…ttler-test-off-parallel-replicas
Related: #124528
Related: #118495
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05317_local_read_throttler_filesystem_cache(added in #118495) failed inStateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)on #124753 with0 1instead of1 1on its last line: report.That lane runs every query with parallel replicas, and the coordinator hands marks to whichever replica asks first. When the remote replicas read all of them, the filesystem cache, file descriptor and throttler ProfileEvents land on their own
query_logrows (current_database = 'default'), which the test'scurrent_database = currentDatabase()filter drops. The initiator row then hasCachedReadBufferReadFromCacheBytes = 0, and the throttler check compares0 <= 0. The failing job'squery_logartifact shows it: the initiator read 0 marks, the two remote rows 1 + 28 marks with 12268 + 1409476 cache bytes; in the 72 passing reruns the initiator read everything.The change pins
enable_parallel_replicas = 0on the measured read only, as #124528 did for the columns cache tests, so both columns are evaluated on the row that did the read. The warm-up read keeps running under parallel replicas. No reference change.Validation on a local
ParallelReplicasrig, same binary: withparallel_replicas_local_plan = 0the unmodified test fails 5/5 (only the last line) and the fixed one passes 10/10; with theslowdown_parallel_replicas_local_plan_readfailpoint and the lane's default local plan, 14/20 vs 20/20. Removing the pin brings the failure back (5/5). The fixed test also passes 50/50 with randomized settings and parallel replicas off.Workflow [PR]
Sync PR [sync-upstream/pr/124920]
Version info
26.10.1.2121-master(included in26.10and later)