You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Shenglong Zhang (Jira)" <ji...@apache.org> on 2023/03/14 12:15:00 UTC

[jira] [Created] (KAFKA-14808) Partition becomes leaderless when new partition reassignment removes the adding replica

Shenglong Zhang created KAFKA-14808:
---------------------------------------

             Summary: 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


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)