mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #235] [MERGED] [Bugfix]: fix redis access error during multi-threaded runtime. #1416
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#1416
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/235
Author: @ssssnow
Created: 4/11/2025
Status: ✅ Merged
Merged: 4/12/2025
Merged by: @stmatengss
Base:
main← Head:gm/fix_multi_threads_err📝 Commits (1)
66da57c[Bugfix]: fix redis access error during multi-threaded runtime.📊 Changes
1 file changed (+24 additions, -2 deletions)
View changed files
📝
mooncake-transfer-engine/src/transfer_metadata_plugin.cpp(+24 -2)📄 Description
Add lock for meta plugin when USE_REDIS is enabled
When compiled with -DUSE_REDIS=ON, the metadata plugin will use Redis as the default storage method. However, hiredis (introduced in
transfer_metadata_plugin.cpp) is not thread-safe.This change adds a lock to prevent errors (which we have actually encountered in our scenario) during multi-threaded runtime.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.