Skip to content

fix(state): add guarded snapshot fallback for state repair#6712

Open
EduSantosBrito wants to merge 1 commit intoanomalyco:devfrom
EduSantosBrito:dev
Open

fix(state): add guarded snapshot fallback for state repair#6712
EduSantosBrito wants to merge 1 commit intoanomalyco:devfrom
EduSantosBrito:dev

Conversation

@EduSantosBrito
Copy link
Copy Markdown
Contributor

When the current state file is missing or corrupted, sst state repair can now recover from the latest valid snapshot with --dangerously-revert.

This also adds the backend plumbing needed to find snapshots in aws, cloudflare, and local, plus tests for the new recovery path.

Details

  • keep default sst state repair behavior safe
  • show a clear rerun message when state can't be read
  • restore the latest valid snapshot only when --dangerously-revert is set
  • treat empty/corrupt state files as a readable error
  • paginate AWS snapshot listing so we don't miss keys

Issue

Closes #6709

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.

Error EOF on most actions

1 participant