mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #170] [MERGED] fix(overlaybd): preserve premerged-index cache during full-file cache recovery #225
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#225
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/AgentENV/pull/170
Author: @huajq
Created: 8/14/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @yingdi-shan
Base:
main← Head:fix/overlaybd-cache-preserve-premerged-index📝 Commits (1)
b4a4bdafix(overlaybd): preserve premerged-index cache during full-file cache recovery📊 Changes
4 files changed (+27 additions, -2 deletions)
View changed files
📝
storage/overlaybd/src/backend/cache/full_file_cache/cache_pool.rs(+6 -0)📝
storage/overlaybd/src/backend/cache/tests.rs(+19 -0)📝
storage/overlaybd/src/lsmt/file/mod.rs(+1 -1)📝
storage/overlaybd/src/lsmt/file/types.rs(+1 -1)📄 Description
What
Skip the reserved
premerged-indexsubdirectory when full-file cache recoveryscans
cacheDir, plus a regression test.Why
The LSMT premerged-index artifact cache lives inside the scanned
cacheDir.Every
ImageServicecreation (node restart, uvm-ublk-daemon lazy creation /respawn) logged
load cache from disk failed err=cache meta not existsanddeleted the whole directory, wiping the cache and racing in-flight writes
(
rename ... No such file or directory).Related issue
N/A — small fix from production logs.
Scope and non-goals
Included: recovery skip + test. Excluded: any on-disk layout change;
writer-side retry (no longer needed).
Design and behavior changes
Recovery skips
PREMERGED_INDEX_DIR(re-exported crate-wide as the singlesource of truth). Real cache entries are still discarded on load failure.
Compatibility and operations
No API, config, layout, or host requirement changes. Existing
.pmidxartifacts now persist across restarts. Safe to roll back.
Validation
Skipped:
makewrappers and unrelated suites; onlyoverlaybdis touched.Risks and reviewer notes
Main file:
storage/overlaybd/src/backend/cache/full_file_cache/cache_pool.rs.Only effect is that the directory named
premerged-indexsurvives recovery.Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.