mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[PR #251] [CLOSED] bugfix: let meta_cache.remove happen after meta_store.write #341
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#341
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/deepseek-ai/3FS/pull/251
Author: @YuqqiZhou
Created: 4/22/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
73cebcfbugfix: let meta_cache.remove happen after meta_store.write📊 Changes
1 file changed (+13 additions, -7 deletions)
View changed files
📝
src/storage/chunk_engine/src/core/engine.rs(+13 -7)📄 Description
We found meta data in RocksDB inconsistent under these conditions:
The main issue is the meta_cache in batch_remove. After meta_store.remove_mut is called, meta_cache.remove is performed, which will dealloacte the chunk Position and the Position may be reused , but the write_batch is not persisted. See an example:
Now the rocksDB has an inconsistent state, only chunk2->pos1 map is reserved, when pos1 is allocated again, it will cause fatal err. as shown in https://github.com/deepseek-ai/3FS/issues/238
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.