You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Shenglong Zhang (Jira)" <ji...@apache.org> on 2023/03/14 12:16:00 UTC
[jira] [Assigned] (KAFKA-14808) Partition becomes leaderless when new partition reassignment removes the adding replica
[ https://issues.apache.org/jira/browse/KAFKA-14808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shenglong Zhang reassigned KAFKA-14808:
---------------------------------------
Assignee: Shenglong Zhang
> Partition becomes leaderless when new partition reassignment removes the adding replica
> ---------------------------------------------------------------------------------------
>
> Key: KAFKA-14808
> URL: https://issues.apache.org/jira/browse/KAFKA-14808
> Project: Kafka
> Issue Type: Bug
> Components: controller
> Affects Versions: 3.4.0
> Reporter: Shenglong Zhang
> Assignee: Shenglong Zhang
> Priority: Major
>
> If there is ongoing partition reassignment and any adding replica has been elected as leader (due to preferred leader election or other reason), the partition will immediately becomes leaderless on receiving a new partition reassignment which removes that adding replica.
> 1) partition-0 has replicas [0, 2]
> 2) partition-0 is being reassigned to [1, 0, 2], and somehow this reassignment is stuck (e.g. broker 2 is down).
> 3) Preferred leader election is triggered, and broker 1 is elected as leader.
> 4) When submitting a new partition reassignment to [2, 0, 3], which remove broker 1 and add broker 3, partition will become leaderless.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)