• Luiz Aoqui's avatar
    server: transfer leadership in case of error (#12293) · dfe520a9
    Luiz Aoqui authored
    When a Nomad server becomes the Raft leader, it must perform several
    actions defined in the establishLeadership function. If any of these
    actions fail, Raft will think the node is the leader, but it will not
    actually be able to act as a Nomad leader.
    
    In this scenario, leadership must be revoked and transferred to another
    server if possible, or the node should retry the establishLeadership
    steps.
    dfe520a9