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 09:19:00 UTC
[jira] [Resolved] (RATIS-1818) Make StartLeaderElection idempotent
[ https://issues.apache.org/jira/browse/RATIS-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaijie Chen resolved RATIS-1818.
--------------------------------
Resolution: Not A Problem
> 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)