[Store] Prevent drain success with local disk replicas#2834
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces handling for unsupported LOCAL_DISK replicas during drain jobs. Since LOCAL_DISK replicas are client-scoped and cannot currently be migrated, the system now identifies them, associates them with the source segments owned by the client, and fails the drain job. A new unit test has been added to verify this failure behavior. I have no additional feedback to provide as there are no review comments.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Description
Fixes #2817.
Prevent drain jobs from reporting success while
LOCAL_DISKreplicas remain on clients that own source segments:OK, and return an explicit error.This change fails closed; it does not add cross-node local-disk migration.
Module
mooncake-store)Type of Change
How Has This Been Tested?
Test commands:
Test results:
Checklist
./scripts/code_format.shAI Assistance Disclosure