Repository navigation
Fix flaky test 05407_map_buckets_zero_key_read_volume - #127222
alexey-milovidov merged 1 commit into
Conversation
Clamp `merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability` to 0 for this test. The test checks that `m[0.0]` (all four buckets of a bucketed `Map`) reads more than twice the compressed bytes of `m[3.0]` (one bucket). The injection is decided per query; when it fires on a read with two or more streams, the read is split into layers, the sorting key `id` is read too and the border granule is read twice. When it fires on the one-bucket query only, that query reads 84521 instead of 39760 compressed bytes against 159659, so the ratio is 1.89 and the check prints 0. That is the cell of all 15 failures among the 121 runs of the failing CI job (PR ClickHouse#127094, `Stateless tests (arm_binary, AsyncInsert, s3 storage, parallel)`). It needs two read streams (object storage, `max_threads > 1`, a small `index_granularity`) and the `ZSTD(3)` server default codec that `tests/config/install.sh` picks for a third of the jobs: with `LZ4` or `ZSTD(1)` the same case gives a ratio of about 2.2 and passes. Validated with two streams forced on local disk (`max_threads=3`, concurrent-read thresholds 1, `index_granularity=1140`, `default_compression_codec='ZSTD(3)'`), which reproduces the job's byte counts exactly: old test 24/120 fail, new 0/120, new with a misspelled clamp line 17/120; default randomization 150/150. 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; 1 finding) plus my own cold review (0 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261021-151500 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261021-150000 |
|
cc @harikrishnan94, could you review this and add the |
|
Workflow [PR], commit [16ecc58] Summary: ✅ AI ReviewSummaryPR #127222 pins randomized Final VerdictStatus: ✅ Approve |
ef2f9c8
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #125713
Failing job: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127094&sha=63db7409ea64cf1eb9ee2c34e4270f52e174824a&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20AsyncInsert%2C%20s3%20storage%2C%20parallel%29
The test checks that
m[0.0](all four buckets) reads more than twice the compressed bytes ofm[3.0](one bucket). In that job it printed0, and the runner's rerun with the same settings failed 14 of 120 times. Both sums were always correct.The randomized
merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probabilityis decided per query. When it fires on a read with two or more streams, the read is split into layers, the sorting keyidis read too, and the border granule is read twice. If it fires on the one-bucket query only, that query reads 84521 bytes instead of 39760, against 159659, and the ratio drops to 1.89. That was the case for all 15 failures among the job's 121 runs, and for no passing run. Two streams need object storage,max_threads > 1and a smallindex_granularity, and the drop is only that large with theZSTD(3)default codec that CI picks for a third of the jobs (about 2.2 withLZ4orZSTD(1)).The change clamps the injection to 0 for this test; all other settings stay randomized.
Validation with two streams forced on local disk (
max_threads3, concurrent-read thresholds 1,index_granularity1140,default_compression_codecZSTD(3)), which gives the job's exact byte counts: old test 24/120 runs fail, new 0/120, new with a misspelled clamp 17/120; default randomization 150/150.Workflow [PR]
Sync PR [sync-upstream/pr/127222]
Version info
26.11.1.482-master(included in26.11and later)