You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Mayuresh Gharat (JIRA)" <ji...@apache.org> on 2018/06/18 17:14:00 UTC
[jira] [Assigned] (KAFKA-4433) 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
[ https://issues.apache.org/jira/browse/KAFKA-4433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mayuresh Gharat reassigned KAFKA-4433:
--------------------------------------
Assignee: (was: Mayuresh Gharat)
> 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
> 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
(v7.6.3#76005)