Skip to content

Create a missing fragment file with its header - #1259

Merged
noha merged 1 commit into
mainfrom
create-missing-fragment-file-with-header
Sep 15, 2026
Merged

noha merged 1 commit into
mainfrom
create-missing-fragment-file-with-header

Conversation

@noha

@noha noha commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

The file the last checkpoint names can be gone, and that is how recovery reaches the journal: it cycles the fragment file when the one named is missing. Writing to a name that is not there opens the file into existence through the write stream, without the header and version #createFragmentFile: writes, and leaves behind a fragment file no reader can make sense of.

#currentFragmentFile now creates the file when it is not there instead of opening it.

The file the last checkpoint names can be gone, and that is how recovery
reaches the journal: it cycles the fragment file when the one named is
missing. Writing to a name that is not there opens the file into
existence through the write stream, without the header and version
#createFragmentFile: writes, and leaves behind a fragment file no reader
can make sense of.

#currentFragmentFile now creates the file when it is not there instead
of opening it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@noha
noha requested a review from MarcusDenker September 15, 2026 09:42
@noha
noha merged commit 707de39 into main Sep 15, 2026
5 checks passed
@noha
noha deleted the create-missing-fragment-file-with-header branch September 15, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant