Skip to content

fix(anvil): handle disk cache write failures in state eviction#13332

Open
thunggis wants to merge 2 commits intofoundry-rs:masterfrom
thunggis:fix_cache
Open

fix(anvil): handle disk cache write failures in state eviction#13332
thunggis wants to merge 2 commits intofoundry-rs:masterfrom
thunggis:fix_cache

Conversation

@thunggis
Copy link
Contributor

@thunggis thunggis commented Feb 5, 2026

Fix state loss when disk_cache.write() fails during memory eviction in InMemoryBlockStates.

  • Make DiskStateCache::write() synchronous and return success status
  • Restore state to memory on write failure instead of losing it
  • Only track state in on_disk_states after confirmed successful write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant