Mayuresh Gharat created KAFKA-4433:
--------------------------------------

             Summary: 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
             Fix For: 0.10.2.0


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.4#6332)

Reply via email to