Repository navigation
Do not run the inserts of test 05239_written_rows_quota_interval_rollover asynchronously - #124935
Conversation
In the AsyncInsert CI lane the test's inserts went through the async insert queue, and an async insert is accounted to the quota when its batch is flushed. The flush waits for the queue shard's adaptive busy timeout, which the other tests of a parallel run keep close to its 5000 ms cap (`async_insert_busy_timeout_ms` in tests/config/users.d/timeouts.xml). Every insert then took 4.2-5 s, so the second insert of each attempt was accounted in [END+10, END+15) instead of [END+5, END+10), and all 10 attempts missed the intervals the scenario needs. Pin `async_insert = 0` on the three inserts, so each one is accounted while it runs. Quota accounting is done by the same CountingTransform call on the synchronous and the asynchronous path, so the test still covers the interval rollover defect it was written for. 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 cold review of the diff (0 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261009-142900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261009-140400 |
|
Workflow [PR], commit [35eec7f] Summary: ✅ AI ReviewSummaryThis PR makes the three Final Verdict
|
CI finish ledger - 625c8f4Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261010-020010 |
…lover-sync-inserts
Related: #118272
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Make the inserts of test
05239_written_rows_quota_interval_rolloversynchronous, so it does not miss its quota intervals in the AsyncInsert CI lane.Description
Failing jobs (identical diff: the first reference line is missing): #123849, #123041, both
Stateless tests (arm_binary, AsyncInsert, s3 storage, parallel).In the AsyncInsert lane the test's inserts go through the async insert queue, and an async insert is accounted to the quota when its batch is flushed. The flush waits for the queue shard's adaptive busy timeout, which the other tests of a parallel run keep near its 5000 ms cap (
timeouts.xml). In the failing job every insert took 4.2-5 s, so the second insert of each attempt was accounted in[END+10, END+15)instead of[END+5, END+10)and all 10 attempts missed. The runner's reruns passed later on an idle shard.The three inserts now use
SETTINGS async_insert = 0(as in b6bd3c8 for05321). Quota accounting goes through the sameCountingTransformcall on both paths, so the test still covers the rollover defect it was written for.Validation: with
async_insert=1, async_insert_use_adaptive_busy_timeout=0, async_insert_busy_timeout_max_ms=4500the old test fails with the CI diff (21 inserts of ~4.5 s, each with anAsyncInsertFlushinsystem.query_log) and the new one passes; removing either loop pin brings the failure back. 50/50 randomized runs pass, with and withoutasync_insert=1.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/124935]
Version info
26.10.1.2029-master(included in26.10and later)