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)

Reply via email to