Repository navigation
Make test 03393_max_merge_delayed_streams_for_parallel_write use a fixed number of columns - #125007
Merged
Merged
Conversation
…fixed number of columns The test merged a copy of `system.metric_log` on S3. It has 1200+ columns (2212 in a local build), and the number grows with every new metric and event, so the test kept getting slower: 137 s median (up to 245 s) in `Stateless tests (arm_asan_ubsan, azure, sequential)`, which hits its 9000 s timeout. Use a table with a fixed number of 200 `UInt64` columns instead. The peak memory usage of the vertical merge is roughly proportional to `max_merge_delayed_streams_for_parallel_write`: ~25 MiB with the limit of 10, and 220-265 MiB with the limit of 10000, so the threshold is lowered from 1 GB to 100 MB. The second `OPTIMIZE` is kept as a control that the merge exceeds the threshold without the limit. The adaptive write buffer is disabled from the start (the INSERT no longer needs it to avoid OOM), and the tags for slowness (`long`, `no-parallel`, `no-flaky-check`, `no-msan`, `no-tsan`) are removed. Locally (release build): 58 s before, 2.4-15 s after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [ab2d604] Summary: ✅ AI ReviewSummaryThis PR rewrites Missing context / blind spots
Final Verdict✅ No new findings. From static review, this looks ready once the pending CI jobs finish. |
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.
The test
03393_max_merge_delayed_streams_for_parallel_writemerged a copy ofsystem.metric_log(1200+ columns, 2212 in a local build, and the number grows with every new metric and event) on an S3 table. It takes 137 s median (up to 245 s) inStateless tests (arm_asan_ubsan, azure, sequential), which hits its 9000 s timeout: 7 of 22 master runs of that job timed out on 2026-10-09.Now the table has a fixed number of 200
UInt64columns. The peak memory usage of the vertical merge is roughly proportional tomax_merge_delayed_streams_for_parallel_write: ~25 MiB with the limit of 10 and 220-265 MiB with the limit of 10000, so the threshold is lowered from 1 GB to 100 MB (about 4x above the limited case and 2.2x below the unlimited one). The secondOPTIMIZEis kept, because it is the control that shows the merge exceeds the threshold without the limit (otherwise the first check would pass trivially). The adaptive write bufferALTERis no longer needed, and the tags added for slowness (long,no-parallel,no-flaky-check,no-msan,no-tsan) are removed.Locally (release build, S3 via MinIO): 58 s before, 2.4-15 s after (8 runs with randomized settings).
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/125007]
Version info
26.10.1.2133-master(included in26.10and later)