[ 
https://issues.apache.org/jira/browse/RATIS-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17702516#comment-17702516
 ] 

Tsz-wo Sze commented on RATIS-1818:
-----------------------------------

[~ckj], The leaderLastEntry in StartLeaderElectionRequestProto already has the 
term.

> 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
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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 receiver 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