Repository navigation
[Store] Publish SSD bucket metadata atomically after fsync - #5775
Closed
MaskVulcan wants to merge 1 commit into
Closed
MaskVulcan wants to merge 1 commit into
MaskVulcan wants to merge 1 commit into
Conversation
Signed-off-by: MaskVulcan <9528071+MaskVulcan@users.noreply.github.com>
12 of 13 tasks
Collaborator
Author
This was referenced Nov 25, 2026
MaskVulcan
added a commit
to MaskVulcan/Mooncake
that referenced
this pull request
Nov 25, 2026
…urable retirement Implement the generation-scoped SSD recovery and HA retirement stage of RFC kvcache-ai#5768 on top of the compatible wire/codec foundation and prerequisites kvcache-ai#5774 and kvcache-ai#5775: - Mint per-write generations on PutStart/UpsertStart and enforce matching captured grants on PutEnd/PutRevoke and batch/session variants. - Key SSD offload records with length-delimited generation storage keys, fence offload and promotion completion/failure notifications by object generation and task_id (allowing holder release of unallocated prefetch tasks), and prevent stale scans from resurrecting deleted/removed objects. - Wait for ordered OpLog durability and callback finalization before retiring overwritten/removed allocations in HA mode, bounded by oplog_durable_wait_timeout_ms. - Add docs/source/design/store/ssd-generations.md, unit/integration tests, and adapt existing tests to forward captured primary write grants. Signed-off-by: MaskVulcan <9528071+MaskVulcan@users.noreply.github.com>
MaskVulcan
added a commit
to MaskVulcan/Mooncake
that referenced
this pull request
Nov 25, 2026
…urable retirement Implement the generation-scoped SSD recovery and HA retirement stage of RFC kvcache-ai#5768 on top of the compatible wire/codec foundation and prerequisites kvcache-ai#5774 and kvcache-ai#5775: - Mint per-write generations on PutStart/UpsertStart and enforce matching captured grants on PutEnd/PutRevoke and batch/session variants. - Key SSD offload records with length-delimited generation storage keys, fence offload and promotion completion/failure notifications by object generation and task_id (allowing holder release of unallocated prefetch tasks), and prevent stale scans from resurrecting deleted/removed objects. - Wait for ordered OpLog durability and callback finalization before retiring overwritten/removed allocations in HA mode, bounded by oplog_durable_wait_timeout_ms. - Add docs/source/design/store/ssd-generations.md, unit/integration tests, and adapt existing tests to forward captured primary write grants. Signed-off-by: MaskVulcan <9528071+MaskVulcan@users.noreply.github.com>
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.
Description
Write bucket metadata to a temporary file, fsync it, rename it into place,
and fsync the directory before acknowledging the bucket. This prevents a
partially written metadata file from being treated as a committed bucket
after restart. Failure cleanup removes both the data and metadata files.
This extracts the local persistence prerequisite for the SSD recovery work
in RFC #5768.
Suggested Merge Priority
Module
Type of Change
How Has This Been Tested?
The Release storage_backend_test CTest target passed. New failure-injection
coverage checks write, file-sync, rename and directory-sync failures, retry,
restart recovery, and publication before the completion callback.
Scoped pre-commit passed.
Checklist
AI Assistance Disclosure
Codex assisted with extracting and validating the change.