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

Fix: Prevent panic when calling Raft::change_membership() on uninitialized node #1244

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Sep 5, 2024

Changelog

Fix: Prevent panic when calling Raft::change_membership() on uninitialized node

Previously, change_membership() assumed the current membership config was
always non-empty and used the last config entry. However, uninitialized
nodes lack a membership config, leading to panics.

This commit adds checks to prevent change_membership() from panicking


This change is Reviewable

…ialized node

Previously, `change_membership()` assumed the current membership config was
always non-empty and used the last config entry. However, uninitialized
nodes lack a membership config, leading to panics.

This commit adds checks to prevent `change_membership()` from panicking
@drmingdrmer drmingdrmer merged commit bcc9ac2 into databendlabs:main Sep 5, 2024
32 checks passed
@drmingdrmer drmingdrmer deleted the 153-xx branch September 5, 2024 16:24
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.

1 participant