Repository navigation
Bound the randomized index granularity in test 04604_adaptive_aggregator_compaction - #125345
Conversation
…ction With `index_granularity = 7` and `min_bytes_for_wide_part = 1073741824` the test's 200,000-row table is one compact part with 28,572 granules. On S3 with the filesystem cache off, each multi-column scan of it issues about one GET per granule, and the test scans the table about 20 times, so it hit the 600 s limit in `Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)` (263,039 GETs, ~2.3 ms each, in the first six cells). The test compares aggregation results with the adaptive aggregator off and on, with `max_block_size` pinned, so it does not depend on granularity. Apply the lower bounds the runner already uses for `long` tests and slow builds (e185707), keeping both settings randomized above them. The line goes below the header comment so it does not conflict with the open ClickHouse#123531, which rewrites that comment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review (click to expand)Independent review of
Checked: the runner scans every line for the limits prefix ( |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261012-075200 |
|
Workflow [PR], commit [c71be11] Summary: ✅ AI ReviewSummaryThis PR narrows the randomized Final Verdict
|
Related: #119337
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Bound the randomized
index_granularityandindex_granularity_bytesin the test04604_adaptive_aggregator_compaction.Description
04604_adaptive_aggregator_compactiontimed out (600 s) in Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel) on #119337. The runner's rerun reproduced it with the same draw and passed 107/107 without randomization.The MergeTree randomizer drew
index_granularity = 7withmin_bytes_for_wide_part = 1073741824, so the 200,000-rowtest_skewbecame one compact part oncached_s3_encryptedwith 28,572 granules. Withenable_filesystem_cache = 0, each multi-column scan issued about one S3 GET per granule (~2.3 ms each): the first six cells took 595.6 s for 263,039 GETs, while the one-columnsum(k)cell needed 4 GETs. CPU was 16-33 s per cell, so the time is in the reads, not in the adaptive aggregator.The test compares each aggregation with the adaptive aggregator off and on, with
max_block_size = 8192pinned, so granularity is not part of what it checks. This adds-- Random settings limits: index_granularity=(100, None); index_granularity_bytes=(100000, None), the lower bounds (100 rows, ~100 KB) the runner already applies tolongtests and slow builds (e185707), as #123765 did for03100_lwu_41_bytes_limits. Granularity stays randomized above the bounds. The line sits below the header comment, so it merges cleanly with #123531.Validation (debug build, local MinIO, the lane's encrypted S3 policy and parallel-replicas cluster):
index_granularity = 100: 32.4 s, 28,076 GETs.With a wide part at granularity 7, the String cell needs 8 GETs instead of 57,146, so the per-granule GETs are specific to compact parts.
Workflow [PR]
Sync PR [sync-upstream/pr/125345]
Version info
26.10.1.2224-master(included in26.10and later)