Repository navigation
Apply filesystem_prefetches_limit and filesystem_prefetch_max_memory_usage to merges and mutations - #129042
Conversation
…usage to merges and mutations
|
Workflow [PR], commit [1807eaf] Summary: ✅
AI ReviewSummaryThe PR adds prefetch admission checks for merges and mutations using Findings
Tests
Missing context / blind spots
Final Verdict |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units12 translation units recompiled, 96 s compile time in total, 12 of them have a recent master baseline. |
A merge or mutation does not prefetch if it needs more than `filesystem_prefetches_limit` prefetches, one per column of each part. `05493` reads one table with 10 columns: it ran longer than 180 s in the flaky check.
Master renamed the prefetch parameter of the merge sequential source to prefetch_begin_of_range and added allow_remote_fs_prefetch. This PR no longer prefetches in the constructor of the source, so the first one is dropped and the second one is kept.
Backport #129042 to 26.10: Apply filesystem_prefetches_limit and filesystem_prefetch_max_memory_usage to merges and mutations
Merges and mutations prefetched every column with no limit, so one merge of a wide table could take the whole remote reader pool. Now they use the same limits as queries: a merge or mutation does not prefetch if it needs more prefetches, one per column of each part, than
filesystem_prefetches_limit, or if their estimated memory is larger thanfilesystem_prefetch_max_memory_usage.Closes: #127403
Related: #129022
Related: #127400
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Merges and mutations now respect
filesystem_prefetches_limitandfilesystem_prefetch_max_memory_usage, so a merge of a wide table on remote storage no longer takes the whole remote reader thread pool.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/129042]
Version info
26.11.1.1364-master(included in26.11and later)26.10.4.207