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 #1243

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Sep 5, 2024

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 changed the title ### Fix: Prevent panic when calling Raft::change_membership() on uninitialized node Fix: Prevent panic when calling Raft::change_membership() on uninitialized node Sep 5, 2024
@drmingdrmer drmingdrmer merged commit 2d6441a into databendlabs:release-0.9 Sep 5, 2024
34 of 35 checks passed
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