Repository navigation
Conversation
The second section asserts the exact `SelectedRows` quota charge (108) of a distributed `INSERT` whose materialized view on the remote server reads `dim_05409` (100 rows) through `remote`. CI got 116 and 110 on two PRs, both in `arm_binary ... s3 storage, parallel` jobs. The randomized `merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability` is forwarded with the `INSERT` to the remote servers. When the coin fires on a read with more than one stream, `ReadFromMergeTree::spreadMarkRangesAmongStreams` splits the ranges into layers with `splitPartsWithRangesByPrimaryKey`, and the granule on a layer border is read by both pipes (the PK-boundary filter drops the duplicates, so the result is right). `SelectedRows` counts that granule twice: +8 at `index_granularity` 8 (116), +2 at `index_granularity` 1 (110). A 100-row part gets several streams on object storage, where the concurrent-read thresholds are 0, which is why only the s3 jobs failed. Clamp the injection to 0 for this test with the runner's per-setting limit, the same header as 05508 (ClickHouse#129987). Every other setting stays randomized. Related: ClickHouse#131791 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 an independent cold review of the diff (0 findings). Checked: the
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261116-205800 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261116-203821 |
|
Workflow [PR], commit [d96e5d0] Summary: ✅ AI ReviewSummaryThis PR disables randomized Final VerdictStatus: ✅ Approve |
139305e
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #131791
Related: #117004
The test asserts the exact
SelectedRowsquota charge (108) of a distributedINSERTwhose remote materialized view readsdim_05409(100 rows) throughremote. CI got116in Stateless tests (arm_binary, AsyncInsert, s3 storage, parallel) and110in Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel).The randomized
merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probabilityis forwarded with theINSERTto the remote servers. When it fires on a read with several streams, the granule on each layer border is read by both layers (the result is right), soSelectedRowsgrows by one granule: +8 atindex_granularity8, +2 at 1. In both jobs'query_log, exactly thedim_05409reads carrying the splitter's filter over-count. A part this small gets several streams only on object storage.The change clamps the injection to 0 for this test, the same header as #129987 (05508). Every other setting stays randomized.
Validation (master debug binary): injection forced to 1 gives
1164/4, 0 gives1084/4. Withindex_granularity8 pinned and the rest randomized, the old test fails 18/30 (local disk, forced concurrency) and 9/30 (s3), the new one 0/30 on both. The injection is nonzero in 0/2820 of the test's queries insystem.query_logwith the clamp, 920/940 with a misspelled one. Default randomization: 50/50 on local disk and on s3. The sibling 05257 keeps its reference under forced injection, so it is unchanged.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132139]
Version info
26.11.1.2794-master(included in26.11and later)