[Store] Add producer view to durable oplog prefix - #3201
Open
Icedcoco wants to merge 7 commits into
Open
Conversation
added 7 commits
July 30, 2026 15:39
1 task
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Icedcoco
marked this pull request as ready for review
August 4, 2026 06:42
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.
Important
This PR is stacked on #3165 and must not be merged before #3165.
After #3165 is merged, this branch will be rebased onto the updated
main.Description
This PR adds a backward-compatible producer view field to the durable oplog prefix.
producer_view_versiontoDurablePrefixwhile keeping schema version 1.This PR only introduces the format and storage semantics needed by later HA work. It does not claim producer views, fence stale writers, or switch the production writer.
Module
mooncake-transfer-engine)mooncake-store)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Test commands:
Test results:
oplog_batch_codec_test: 34/34 passedoplog_batch_storage_test: 38/38 passedoplog_batch_standby_reader_test: 20/20 passedordered_oplog_writer_test: 28/28 passedPre-commit hooks passed for all files changed by this PR
Unit tests pass
Integration tests pass (if applicable)
Manual testing done
Checklist
./scripts/code_format.shpre-commit run --all-filesand all hooks passAI Assistance Disclosure
Codex was used to refine the design, implement the code and tests, investigate review findings, and run verification. The human submitter is responsible for reviewing and defending every changed line.