Repository navigation
Run the setup INSERTs of 03822_variant_distinct_filter synchronously - #125201
Merged
alexey-milovidov merged 1 commit intoOct 12, 2026
Merged
alexey-milovidov merged 1 commit into
alexey-milovidov merged 1 commit into
Conversation
In the AsyncInsert jobs the server profile enables async_insert with the default wait_for_async_insert = 1, and timeouts.xml sets the busy timeout to 5000 ms. The test sends its 80 setup INSERTs one at a time, so each one waits for its own queue flush. The adaptive busy timeout is per queue shard, and other tests' inserts on the same shard keep it near the 5000 ms maximum, so the setup alone can take about 80 x 5 s. That hit the 300 s per-test timeout on ClickHouse#110015. In master and release-branch runs of the same check, 5 of 80 runs in 30 days took over 300 s. The concurrent SELECTs only need 80 separate Memory blocks, so run the setup batch with --async_insert=0, as every other job already does. The SELECT phase is unchanged and the test still runs in the AsyncInsert jobs. A no-async-insert tag would skip the whole test there instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own review (2 nits).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261011-140500 |
Collaborator
Author
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261011-134300 |
Contributor
|
Workflow [PR], commit [a4bc0d1] Summary: ✅ AI ReviewSummaryThis PR makes the setup phase of Final Verdict✅ No blocking or major issues found. No new inline review comments to post. |
alexey-milovidov
approved these changes
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #110015
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
03822_variant_distinct_filterhit the 300 s per-test timeout inStateless tests (arm_binary, AsyncInsert, s3 storage, parallel)on #110015 (CI report). It was not a hang. The job'squery_logshows that 63 of the 80 setup INSERTs had finished, taking 3.5 to 5 s each, and the concurrent SELECT phase never started.The AsyncInsert jobs enable
async_insertin the server profile, with the defaultwait_for_async_insert = 1, andtests/config/users.d/timeouts.xmlsets the busy timeout to 5000 ms. The test sends its 80 INSERTs one at a time through one client, so each INSERT waits for its own queue flush. The adaptive busy timeout is tracked per queue shard, and inserts from other tests on the same shard keep it close to the 5000 ms maximum. The setup alone can then take about 80 x 5 s. In master runs of this check, 5 of 80 runs in the last 30 days took over 300 s (max 388 s). They passed only because the master per-test timeout is 600 s.The concurrent SELECTs need 80 separate Memory blocks, not async inserts, so the setup batch now runs with
--async_insert=0. Every non-AsyncInsert job already runs it that way. The SELECT phase is unchanged, and the test still runs in the AsyncInsert jobs.Validation on a local debug server with the AsyncInsert profile: with the busy timeout forced to its maximum (
async_insert_use_adaptive_busy_timeout=0), the old test hits a 90 s timeout after 17 INSERTs of 5.0 s each, and the new test passes in 5.5 s (80 INSERTs, max 1 ms). The setup still creates 80 rows in 80 blocks. 50 of 50 randomized runs pass with the AsyncInsert profile (max 6.2 s), and 20 of 20 with the default profile.Workflow [PR]
Sync PR [sync-upstream/pr/125201]
Version info
26.10.1.2233-master(included in26.10and later)