Repository navigation
Fix 05401_autopr_set_transplant_unpaired_sets timeout with small randomized index granules - #127515
Conversation
…ranules The test reads its 1M-row table in one thread with 1 KiB read tasks in every query, so its run time is proportional to the number of marks. The runner randomizes index_granularity down to 1 (100 on slow builds) and index_granularity_bytes down to 1024; every failing run in 30 days drew a granularity below 200 (8, 29, 102, 117, 162). On the true master failure (amd_tsan, s3 storage) the table had 8547 marks and four queries took 109-243 s each (17094 selected marks, ~20300 S3 GETs each). In one debug flaky check, 50 runs took 17-31 s at every granularity >= 4037 and 134 s at 517. Floor both settings at the engine defaults with a per-setting `Random settings limits` line, as in 05175_autopr_lazy_read_statistics; draws above the defaults stay randomized. Queries and reference unchanged. 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 review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261022-233900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261022-230400 |
|
Workflow [PR], commit [30f7da6] Summary: ✅ AI ReviewSummaryThe PR floors randomized Final VerdictStatus: ✅ Approve |
|
cc @devcrafter, could you review this and add the |
CI finish ledger - e79354cEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261023-123007 |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The test
05401_autopr_set_transplant_unpaired_setsnow keeps the randomizedindex_granularityandindex_granularity_bytesat their defaults or above, so it no longer times out when the runner draws tiny granules.Description
Related: #126141 (added the test)
Failing master job: Stateless tests (amd_tsan, s3 storage, parallel, 3/3),
Reason: Timeout!. All 5 failures in 30 days (master, merge queue, PR flaky checks) drewindex_granularitybelow 200 (8, 29, 102, 117, 162).Every query reads the 1M-row table in one thread with 1 KiB remote read tasks, so its cost grows with the number of granules. In the master failure (
index_granularity = 117, filesystem cache off) eachsumIf ... INquery read 17094 marks with ~20300 S3 GETs and took 109-243 s.index_granularity_bytes = 1024alone gives ~20k marks too.The fix adds
-- Random settings limits: index_granularity=(8192, None); index_granularity_bytes=(10485760, None), the same line as05175_autopr_lazy_read_statistics: the engine defaults as lower bounds, both still randomized above them. The queries and the reference are unchanged.Validation (debug build, local MinIO):
index_granularity = 8failure giveTimeout!at 600 s, 2.3 s at the floors;index_granularity = 8192, index_granularity_bytes = 10485760and runs in 1-2.5 s; with the line misspelled it keeps 117 / 4101855 and runs 23-120 s;🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127515]
Version info
26.11.1.735-master(included in26.11and later)