Skip to content

[server] fix KV snapshot restoring fallback - #3790

Open
zuston wants to merge 2 commits into
apache:mainfrom
zuston:snapshotFallback
Open

[server] fix KV snapshot restoring fallback#3790
zuston wants to merge 2 commits into
apache:mainfrom
zuston:snapshotFallback

Conversation

@zuston

@zuston zuston commented Jul 28, 2026

Copy link
Copy Markdown
Member

Purpose

Fix KV tablet recovery when the latest remote snapshot is broken or missing. The recovery process now correctly detects missing snapshot files reported by different filesystem implementations, removes the broken snapshot metadata, and safely falls back to the previous available snapshot.

Close #3740

Brief change log

  • Detect missing snapshot data through the exception cause chain, including Hadoop's File does not exist error message.
  • Distinguish newly created and restored snapshot handles so discarding a restored broken snapshot does not delete shared files referenced by older snapshots.
  • Add regression coverage for broken snapshot cleanup and the latest snapshot → previous snapshot fallback flow.

Tests

API and Format

Documentation

@zuston

zuston commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

PTAL @fresh-borzoni @wuchong

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.

PK table bucket can't rebuild from the missing snapshot in the remote storage

1 participant