Repository navigation
A log ledger's newest generation is never evicted: the window before a restart survives - #6306
Merged
Merged
Conversation
…a restart survives Card 75ba2d17. The IntelMac 2026-11-28: disk.relief at 06:59:25Z (High, want 58,201,989,605 bytes); at 06:59:55Z, 26 s after the 06:59:29Z boot, disk.relief.asked had pool disk-logs give 16,777,027 bytes: the core log's .1 and .2, the minutes before the restart. The appender keeps generations as designed; relief evicted them, asking the logs pool last after the larger pools protected their files. RotationLogPool's eviction now never takes .1, the newest generation: the window a deploy's comparison reads (the plan's rule 3). The floor is the live file and .1, at most two capped generations per ledger. The snapshot reports .1 as pinned. The percent-of-disk want itself is relief's, replaced by step 6's time-to-full law, and is untouched here. Tests: unbounded eviction gives .2 and .3 and keeps the live file and .1, and gives nothing when asked again; a stranger file is still neither counted nor evicted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Contributor
Author
|
Review of #6306 at exact head b38add3 (submission dc4bf40b): PASS. Verified, by reading the file at that head (git show b38add3:core/continuum-kernel/src/system_resources/rotation_log_pool.rs):
|
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.
Card 75ba2d17. The IntelMac 2026-11-28: disk.relief at 06:59:25Z (High, want
58,201,989,605 bytes); at 06:59:55Z, 26 s after the 06:59:29Z boot,
disk.relief.asked had pool disk-logs give 16,777,027 bytes: the core log's .1
and .2, the minutes before the restart. The appender keeps generations as
designed; relief evicted them, asking the logs pool last after the larger
pools protected their files.
RotationLogPool's eviction now never takes .1, the newest generation: the
window a deploy's comparison reads (the plan's rule 3). The floor is the live
file and .1, at most two capped generations per ledger. The snapshot reports
.1 as pinned. The percent-of-disk want itself is relief's, replaced by step 6's
time-to-full law, and is untouched here.
Tests: unbounded eviction gives .2 and .3 and keeps the live file and .1, and
gives nothing when asked again; a stranger file is still neither counted nor
evicted.
Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE