Repository navigation
Revert "Fix false LOGICAL_ERROR in filesystem cache dynamic resize" - #100271
Conversation
|
Workflow [PR], commit [ec6bcfd] Summary: ❌
AI ReviewSummaryThis PR reverts #99850 and changes Findings❌ Blockers
ClickHouse Rules
Performance & Safety
Final Verdict
|
| /// causing a sub-queue to temporarily exceed its new limit. | ||
| /// The caller catches this and retries on the next config reload. | ||
| throw Exception(ErrorCodes::NOT_ENOUGH_SPACE, | ||
| throw Exception(ErrorCodes::LOGICAL_ERROR, |
There was a problem hiding this comment.
This revert brings back the known race in dynamic cache resize where concurrent promotion in SLRU can leave a sub-queue above its new limit transiently. In that case, this path throws LOGICAL_ERROR, which is treated as an unexpected internal invariant violation even though the condition is recoverable and expected under concurrency.
Could we keep NOT_ENOUGH_SPACE here (as in #99850) or otherwise handle this condition as retriable/non-bug? Reintroducing LOGICAL_ERROR risks noisy false-positive exceptions during config reload and regresses the behavior fixed in that PR.
LLVM Coverage Report
PR changed lines: PR changed-lines coverage: 20.00% (1/5, 1 noise lines excluded) |
Reverts #99850
Version info
26.4.1.724