Repository navigation
fix(rotortree): rewrite an open upper-level node on every checkpoint - #62
Merged
rymnc merged 3 commits intoNov 17, 2026
Merged
Conversation
dkgoutham
marked this pull request as ready for review
November 11, 2026 09:46
rymnc
approved these changes
Nov 17, 2026
rymnc
enabled auto-merge (squash)
November 17, 2026 08:19
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.
fixes #60
A checkpoint counted every full 128-node chunk as final. Above level 0, a level's last node stays open until its
N^L-leaf subtree fills. So a checkpoint could write that node once, and the next checkpoint mapped the stale copy back. Reopen made the same count.leaf_count / N^Lnodes per level) and copies the rest into memory, as the runtime remap does. It used to map chunks that a later checkpoint rewrites in place, and on Linux a snapshot taken after reopen then changed.mainalready does this for partial upper-level chunks.Three regression tests in
storage_integration.rs(N = 2, 3) compare every node withLeanIMT. Each fails onmain; the snapshot one fails only on Linux.Stores written before this fix can already hold a stale chunk, and this doesn't repair them.