You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2020/10/06 17:26:00 UTC

[jira] [Resolved] (KAFKA-10527) Voters should always initialize as followers

     [ https://issues.apache.org/jira/browse/KAFKA-10527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Gustafson resolved KAFKA-10527.
-------------------------------------
    Resolution: Fixed

> Voters should always initialize as followers
> --------------------------------------------
>
>                 Key: KAFKA-10527
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10527
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Jason Gustafson
>            Assignee: Jason Gustafson
>            Priority: Major
>
> The current state initialization logic preserves whatever state the broker was in when it was shutdown. In particular, if the node was previously a leader, it will remain a leader. This can be dangerous if we want to consider optimizations such as in KAFKA-10526 since the leader might lose unflushed data following the restart. It would be safer to always initialize as a follower so that a leader's tenure never crosses process restarts. This helps to guarantee the uniqueness of the (offset, epoch) tuple which the replication protocol depends on.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)