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/09/25 00:36:00 UTC

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

Jason Gustafson created KAFKA-10527:
---------------------------------------

             Summary: 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


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)