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

feat: do not recover from panics with fatal errors #3534

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

aleks-p
Copy link
Contributor

@aleks-p aleks-p commented Aug 30, 2024

The metastore FSM recovers from any panics in Raft command handlers. This change adds a custom error type which when used in a panic will result in a real panic. It also downgrades a few existing error cases, when the underlying issue is a logical one (a bug) as opposed to a technical problem.

The intention is to terminate replicas when they encounter a real error, e.g., failing to persist the state to the DB.

@aleks-p aleks-p requested a review from a team as a code owner August 30, 2024 15:56
@aleks-p aleks-p merged commit bf6f9c5 into main Aug 30, 2024
18 checks passed
@aleks-p aleks-p deleted the feat/panic-on-db-errors branch August 30, 2024 16:42
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.

2 participants