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)

Reply via email to