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

Trigger the election immediately when doing a manual failover #1081

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Commits on Sep 28, 2024

  1. Trigger the election immediately when doing a manual failover

    Currently when a manual failover is triggeded, we will set a
    CLUSTER_TODO_HANDLE_FAILOVER to start the election as soon as
    possible in the next beforeSleep. But in fact, we won't delay
    the election in manual failover, waitting for the next beforeSleep
    to kick in will delay the election a some milliseconds.
    
    We can trigger the election immediately in this case in the
    same function call, without waitting for beforeSleep, which
    can save us some milliseconds.
    
    Signed-off-by: Binbin <binloveplay1314@qq.com>
    enjoy-binbin committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    d926d8e View commit details
    Browse the repository at this point in the history