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

Handle view changes during election #263

Merged
merged 1 commit into from
Apr 12, 2024

Commits on Apr 10, 2024

  1. Handle view changes during election

    Created test cases for the scenarios mentioned in the GitHub issue and
    the fixes.
    
    Elected leader leaving before the voting thread has finished. This
    causes a liveness issue on both ELECTION and ELECTION2. We can fix this
    by stopping the voting thread before starting it again.
    
    Scenarios the coordinator leaves before finishing the election process
    and a majority still exists. ELECTION algorithm has a liveness issue in
    this case, since it does not take into account changes in the view
    coordinator. We handle this case by calculating if the coordinator has
    changed between views, there is a majority, it is currently the
    coordinator, and there is no leader elected.
    
    Close jgroups-extras#259.
    jabolina committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    e4cd677 View commit details
    Browse the repository at this point in the history