[
https://issues.apache.org/jira/browse/RATIS-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kaijie Chen updated RATIS-1818:
-------------------------------
Description:
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)
was:
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)
> 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)