Repository navigation
[Store] Fix snapshot test eviction race - #3813
Merged
Merged
Conversation
Icedcoco
marked this pull request as ready for review
September 1, 2026 11:32
Icedcoco
requested review from
00fish0,
Aionw,
Libotry and
YiXR
as code owners
September 1, 2026 11:32
huangxiaobai-ydmy
pushed a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Sep 9, 2026
EvictObject TearDown failed because the restored MasterService kept BatchEvict running above the watermark before snapshot comparison. Disable eviction on the restore config and join its worker, extending kvcache-ai#3813. Co-authored-by: Cursor <cursoragent@cursor.com>
huangxiaobai-ydmy
pushed a commit
to huangxiaobai-ydmy/Mooncake
that referenced
this pull request
Sep 10, 2026
EvictObject TearDown failed because the restored MasterService kept BatchEvict running above the watermark before snapshot comparison. Disable eviction on the restore config and join its worker, extending kvcache-ai#3813. Co-authored-by: Cursor <cursoragent@cursor.com>
10 of 31 tasks
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
Stop the MasterService eviction worker before snapshot/restore validation in
the shared snapshot test fixture, and serialize manual snapshot writes under
snapshot_mutex_. This prevents background eviction from changing replicametadata while the test compares the original and restored services.
Module
mooncake-transfer-engine)mooncake-store)mooncake-reshard)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:
The SSD snapshot target passed twice,
EvictObjectpassed ten consecutiveruns, and the other snapshot fixtures passed. Pre-commit passed all applicable
hooks.
Checklist
./scripts/code_format.shAI Assistance Disclosure
submitter must review and defend every changed line end-to-end.