Repository navigation
Fix flaky test 04103_user_network_bandwidth_throttler with parallel replicas - #123734
Conversation
…eplicas In the `arm_binary, ParallelReplicas, s3 storage` lane the table's only segment can be read by a remote replica. That replica runs as the cluster's user (`default`), so the read bypasses this user's throttler, and its ProfileEvents are not added to the initial query's `query_log` row, so the `read` row is `0 0 0`. Tag the test `no-parallel-replicas`. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119250&sha=bf2178c46c336e8c0cac2a5ec72cf613a6bf521e&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review (click to expand): 0 blockers, 0 majors, 1 nit
Gate B (independent model): no findings. Also noticed: the parallel replicas path forwards |
|
Workflow [PR], commit [60502fd] Summary: ✅ AI ReviewSummaryThis PR marks Final Verdict
|
CI finish ledger - e942902Every 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-210720 |
Related: #122853
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
The test fails only in
Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)(4 of 106 runs in 7 days, 4 unrelated PRs; 0 failures in every other lane), always asread 0 0 0, e.g. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119250&sha=bf2178c46c336e8c0cac2a5ec72cf613a6bf521e&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29The
readrow checks that the initial query of a user withmax_network_bandwidth_for_user = 200000was throttled. With parallel replicas the table's only segment can be read by a remote replica, which runs as the cluster's user (default), so the read goes through that user's throttler, not this one (1.6 MB in ~14 ms in the job'squery_log). Remote ProfileEvents are also not added to the initial query's row. By design a per-user limit applies to the user that runs the query on each server, so the assertion is not defined under parallel replicas.Change: tag the test
no-parallel-replicas, the convention already used for other tests that assert on ProfileEvents of the initial query in this lane (02770_async_buffer_ignore). The assertions are unchanged.Validation, on a local server with the lane's config and
parallel_replicas_local_plan = 0: without the tag the test failed in 19 of 25 runs, every time a non-local replica read the segment; with the tag it is skipped under--no-parallel-replicasand passes 5/5 without it, because the tag pinsenable_parallel_replicas = 0. 20/20 on a plain s3 server.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123734]
Version info
26.10.1.1493-master(included in26.10and later)