Repository navigation
Fix false LOGICAL_ERROR in filesystem cache dynamic resize - #99850
Merged
Merged
Conversation
During SLRU dynamic resize, concurrent `tryIncreasePriority` can promote entries from probationary to protected queue between eviction candidate collection and `modifySizeLimits` call. This causes a sub-queue to temporarily exceed its new limit, triggering a LOGICAL_ERROR exception. Change the error code to NOT_ENOUGH_SPACE since this is an expected race condition, not a logic bug. The caller already catches exceptions and the resize will be retried on the next config reload. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=99014&sha=28ffe4d83ba90c515fa8c6cf7e4f41e6088b60b3&name_0=PR&name_1=Stress%20test%20%28amd_debug%29 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
Contributor
LLVM Coverage Report
PR changed lines: PR changed-lines coverage: 16.67% (1/6, 0 noise lines excluded) |
alexey-milovidov
left a comment
Member
Author
There was a problem hiding this comment.
This change looks very reasonable to me. How does it look to you?
Member
Probably you forgot - I did answer about this PR in slack. I thought you'd close it yourself after that. |
1 task
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.
During SLRU dynamic resize, concurrent
tryIncreasePrioritycan promote entries from probationary to protected queue between eviction candidate collection andmodifySizeLimitscall. This causes a sub-queue to temporarily exceed its new limit, triggering aLOGICAL_ERRORexception.Change the error code to
NOT_ENOUGH_SPACEsince this is an expected race condition, not a logic bug. The caller already catches exceptions and the resize will be retried on the next config reload.CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=99014&sha=28ffe4d83ba90c515fa8c6cf7e4f41e6088b60b3&name_0=PR&name_1=Stress%20test%20%28amd_debug%29
#99014
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix false
LOGICAL_ERRORexception during filesystem cache dynamic resize due to a race condition in SLRU sub-queue promotion.Documentation entry for user-facing changes
Version info
26.4.1.70