Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO-3129 reinit badger localstore in case of known corruption errors #1324

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
GO-3129 add error checksum is empty
  • Loading branch information
requilence committed Jun 17, 2024
commit 1976cc421542cfa760425f10cd508ceca4ac9e0a
3 changes: 3 additions & 0 deletions pkg/lib/datastore/clientds/clientds.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ func isBadgerCorrupted(err error) bool {
if strings.Contains(err.Error(), "checksum mismatch") {
return true
}
if strings.Contains(err.Error(), "checksum is empty") {
return true
}
if strings.Contains(err.Error(), "EOF") {
return true
}
Expand Down
Loading