Fix assertion in MergeTreePrefetchedReadPool::startPrefetches#96123
Merged
alexey-milovidov merged 3 commits intomasterfrom Feb 7, 2026
Merged
Fix assertion in MergeTreePrefetchedReadPool::startPrefetches#96123alexey-milovidov merged 3 commits intomasterfrom
MergeTreePrefetchedReadPool::startPrefetches#96123alexey-milovidov merged 3 commits intomasterfrom
Conversation
The assertion checked that the top of `prefetch_queue` had a priority equal to `highest_priority`, but not all tasks are prefetched — some are skipped due to `filesystem_prefetch_max_memory_usage` or prefetch count limits. When the first tasks of all threads are skipped, the top of the queue has a higher priority value, violating the `==` assertion. Closes #78287 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
Workflow [PR], commit [f78a789] Summary: ❌
|
nickitat
reviewed
Feb 6, 2026
…assertion.sql Co-authored-by: Nikita Taranov <nikita.taranov@clickhouse.com>
Co-authored-by: Nikita Taranov <nikita.taranov@clickhouse.com>
nickitat
approved these changes
Feb 6, 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.
The assertion checked that the top of
prefetch_queuehad a priority equal tohighest_priority, but not all tasks are prefetched — some are skipped due tofilesystem_prefetch_max_memory_usageor prefetch count limits. When the first tasks of all threads are skipped, the top of the queue has a higher priority value, violating the==assertion.Closes #78287
Changelog category (leave one):