[ https://issues.apache.org/jira/browse/KAFKA-4433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma updated KAFKA-4433: ------------------------------- Priority: Critical (was: Major) > Kafka Controller Does not send a LeaderAndIsr to old leader of a > topicPartition during reassignment, if the old leader is not a part of the > new assigned replicas > ----------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: KAFKA-4433 > URL: https://issues.apache.org/jira/browse/KAFKA-4433 > Project: Kafka > Issue Type: Bug > Components: controller > Reporter: Mayuresh Gharat > Assignee: Mayuresh Gharat > Priority: Critical > Labels: reliability > > Consider the following scenario : > old replicas : {[1,2,3], Leader = 1} is reassigned to new replicas : > {[2,3,4], Leader = 2} > In this case broker 1 does not receive a LeaderAndIsr request to become a > follower. > This happens because of the following : > val (leaderAndIsr, replicas) = leaderSelector.selectLeader(topicAndPartition, > currentLeaderAndIsr) in PartitionStateMachine.electLeaderForPartition(...) , > the replicas returned by ReassignedPartitionLeaderSelector.selectLeader() is > only the new Replicas, which are then sent the LeaderAndIsrRequest. So the > old replica never receives this LeaderAndIsr. -- This message was sent by Atlassian JIRA (v6.3.15#6346)