You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jose Armando Garcia Sancio (Jira)" <ji...@apache.org> on 2021/08/11 18:38:00 UTC
[jira] [Created] (KAFKA-13193) Replica manager doesn't update
partition state when transitioning from leader to follower with unknown
leader
Jose Armando Garcia Sancio created KAFKA-13193:
--------------------------------------------------
Summary: Replica manager doesn't update partition state when transitioning from leader to follower with unknown leader
Key: KAFKA-13193
URL: https://issues.apache.org/jira/browse/KAFKA-13193
Project: Kafka
Issue Type: Bug
Components: kraft, replication
Reporter: Jose Armando Garcia Sancio
Assignee: Jose Armando Garcia Sancio
This issue applies to both the ZK and KRaft implementation of the replica manager. In the rare case when a replica transition from leader to follower with no leader the partition state is not updated.
This is because when handling makeFollowers the ReplicaManager only updates the partition state if the leader is alive. The solution is to always transition to follower but not start the fetcher thread if the leader is unknown or not alive.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)