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

Commits on Sep 5, 2024

  1. Fix: Prevent panic when calling Raft::change_membership() on uninit…

    …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 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    80b64b1 View commit details
    Browse the repository at this point in the history