mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #760] [MERGED] [Store] Serialize/Deserialize Offset Allocator #1802
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#1802
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/760
Author: @ykwd
Created: 8/19/2025
Status: ✅ Merged
Merged: 8/21/2025
Merged by: @ykwd
Base:
main← Head:dev/allocator-serialization📝 Commits (10+)
25b4958Basic implementationcd82ad5Fix bugs; Add unit tests4d49708Enhance unit tests4bb1d0dEnhance unit testsa87e463revert unnecessary changesc1d95e4Enhance unit testb614f19Minor changesacc5f10Update unit testcbeb7f6Avoid too many error log5ae3729Add comments📊 Changes
7 files changed (+1196 additions, -98 deletions)
View changed files
📝
mooncake-store/include/offset_allocator/offset_allocator.hpp(+123 -4)➕
mooncake-store/include/serializer.h(+377 -0)📝
mooncake-store/include/types.h(+4 -0)📝
mooncake-store/tests/CMakeLists.txt(+11 -0)📝
mooncake-store/tests/master_metrics_test.cpp(+0 -4)📝
mooncake-store/tests/offset_allocator_test.cpp(+508 -90)➕
mooncake-store/tests/serializer_test.cpp(+173 -0)📄 Description
This feature will be used for persisting master KV metadata. The serialize and deserialize methods of OffsetAllocator are implemented as templates; otherwise, offset_allocator.h would need to directly or indirectly include type.h, which would result in circular dependencies and compilation failure.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.