mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #778] [MERGED] [Store] Check If Get Completed Within Lease #1817
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#1817
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/778
Author: @ykwd
Created: 8/22/2025
Status: ✅ Merged
Merged: 9/24/2025
Merged by: @ykwd
Base:
main← Head:dev/read-timeout📝 Commits (10+)
5be365bGrant lease in GetReplicaListByRegex6ec4bf6A temp version6685938Simplify the logicba47e51First version39a3ed0Merge main2cd4e55Eliminate unused var warningc69ea33refactor the code372cfbbFormat code3d1978bAdd unit test: temp version493c672Format code. Add a unit test📊 Changes
24 files changed (+783 additions, -271 deletions)
View changed files
📝
doc/en/mooncake-store.md(+3 -1)📝
doc/zh/mooncake-store.md(+3 -1)📝
docs/source/design/mooncake-store.md(+4 -1)📝
mooncake-store/include/client.h(+45 -21)📝
mooncake-store/include/master_client.h(+4 -3)📝
mooncake-store/include/master_config.h(+53 -0)📝
mooncake-store/include/master_service.h(+2 -9)📝
mooncake-store/include/rpc_service.h(+3 -2)➕
mooncake-store/include/rpc_types.h(+43 -0)📝
mooncake-store/include/types.h(+6 -23)📝
mooncake-store/src/client.cpp(+57 -20)📝
mooncake-store/src/master_client.cpp(+6 -6)📝
mooncake-store/src/master_service.cpp(+6 -14)📝
mooncake-store/src/pybind_client.cpp(+99 -94)📝
mooncake-store/src/rpc_service.cpp(+8 -7)📝
mooncake-store/src/types.cpp(+1 -0)📝
mooncake-store/tests/client_integration_test.cpp(+3 -4)📝
mooncake-store/tests/e2e/client_wrapper.cpp(+6 -4)📝
mooncake-store/tests/e2e/client_wrapper.h(+1 -1)📝
mooncake-store/tests/master_service_ssd_test.cpp(+8 -8)...and 4 more files
📄 Description
If the data transfer during a get operation is not completed within the lease time, there is a risk that the retrieved data may be incorrect. Currently, the default lease TTL is set to 5 seconds. Under normal circumstances, where network communication is stable, this situation is unlikely to occur. But when the network condition is not stable, the overhead is too heavy, or when there are delays due to thread scheduling, the time for data retrieval may be longer than expected. This mechanism can serve as a safeguard to ensure data consistency in extreme cases.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.