Skip to content

fix(cache): recover from corrupt persistent cache meta instead of panicking - #14946

Open
lazerg wants to merge 1 commit into
web-infra-dev:mainfrom
lazerg:fix/issue-14859-persistent-cache-meta-recovery
Open

fix(cache): recover from corrupt persistent cache meta instead of panicking#14946
lazerg wants to merge 1 commit into
web-infra-dev:mainfrom
lazerg:fix/issue-14859-persistent-cache-meta-recovery

Conversation

@lazerg

@lazerg lazerg commented Jul 25, 2026

Copy link
Copy Markdown

Summary

Recovering the persistent cache meta scope decoded its stored value with .expect("should decode success"), so a corrupted entry aborted the whole process instead of being handled as a recoverable failure. Propagate the decode error instead. CacheContext::load_occasion already treats a failed recovery by resetting the occasion's scope, so a bad meta entry now falls back to a clean rebuild rather than a panic.

Related links

Fixes #14859

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: corrupt persistent-cache meta recovery panics

1 participant