mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1053] [MERGED] [Store|TransferEngine]: use condition-variable based completion instead of busy-polling #1982
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#1982
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/1053
Author: @wwq2333
Created: 11/13/2025
Status: ✅ Merged
Merged: 11/17/2025
Merged by: @stmatengss
Base:
main← Head:feature/event-driven-completion📝 Commits (10+)
33ca8c2(Event-driven completion) Provide an option to use condition-variable based completion instead of busy-polling298fc6breplace C-style BatchID→BatchDesc casts with Transport::toBatchDesc helper (reinterpret_cast)83ffbb1Cleanup(TransferEngineOperationState): remove spurious notify and confusing comment in set_result_internal6815962Use a single atomic completed counter to avoid reading inconsistent results6c2425dclang-format4941ef1deduplicate completion signaling via check_completion3e92383fast‑path completed check before waiting on BatchDesc::completion_cvf62a6fbRefine comments explaining atomic operations and memory orderingf2f7420fix: protect batch_desc.is_finished update with completion_mutex to prevent lost wakeups4a1520cclang-format📊 Changes
3 files changed (+157 additions, -7 deletions)
View changed files
📝
mooncake-common/common.cmake(+7 -0)📝
mooncake-store/src/transfer_task.cpp(+51 -4)📝
mooncake-transfer-engine/include/transport/transport.h(+99 -3)📄 Description
Summary
Motivation
Fix #1033
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.