Repository navigation
[Store] Wait for ordered log completion callbacks - #5774
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
This was referenced Nov 23, 2026
Collaborator
Author
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
Expose bounded waits for the ordered log's durability and callback completion.
A durable delete can still have its allocation held by a queued callback.
Waiting for finalization lets the caller observe that cleanup before allowing
a same-key rewrite.
The callback completion sequence advances in log order. A later terminal
failure does not skip an earlier durable callback, and Stop wakes waits for
records that cannot become durable. This is a prerequisite for the SSD HA
generation work in RFC #5768.
Suggested Merge Priority
Module
Type of Change
How Has This Been Tested?
The Release ordered_oplog_writer_test target passed all 58 cases, including
four new cases for callback drain, stop before start, timeout bounds, and a
later failure while an earlier callback is pending. Scoped pre-commit passed.
Checklist
AI Assistance Disclosure
Codex assisted with extracting and validating the change.