You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Kaijie Chen (Jira)" <ji...@apache.org> on 2023/03/20 08:31:00 UTC

[jira] [Created] (RATIS-1818) Make StartLeaderElection idempotent

Kaijie Chen created RATIS-1818:
----------------------------------

             Summary: Make StartLeaderElection idempotent
                 Key: RATIS-1818
                 URL: https://issues.apache.org/jira/browse/RATIS-1818
             Project: Ratis
          Issue Type: Sub-task
            Reporter: Kaijie Chen
            Assignee: Kaijie Chen


Currently, it is possible for a leader at {{term x}} to send {{StartLeaderElection}} twice to a follower, making the follower become {{term x + 2}}.

We can make StartLeaderElection idempotent by including a term in {{StartLeaderElectionRequest}}. And the handler should ignore the {{StartLeaderElectionRequest}} from lower term.

(Actually every request proto should include a senders term)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)