You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "David Mao (Jira)" <ji...@apache.org> on 2024/01/12 17:32:00 UTC

[jira] [Created] (KAFKA-16121) Partition reassignments in ZK migration dual write mode stalled until leader epoch incremented

David Mao created KAFKA-16121:
---------------------------------

             Summary: Partition reassignments in ZK migration dual write mode stalled until leader epoch incremented
                 Key: KAFKA-16121
                 URL: https://issues.apache.org/jira/browse/KAFKA-16121
             Project: Kafka
          Issue Type: Bug
            Reporter: David Mao


I noticed this in an integration test in https://github.com/apache/kafka/pull/15184

In ZK mode, partition leaders rely on the LeaderAndIsr request to be notified of new replicas as part of a reassignment. In ZK mode, we ignore any LeaderAndIsr request where the partition leader epoch is less than or equal to the current partition leader epoch.

In KRaft mode, we do not bump the leader epoch when starting a new reassignment, see: `triggerLeaderEpochBumpIfNeeded`. This means that the leader will ignore the LISR request initiating the reassignment until a leader epoch bump is triggered through another means, for instance preferred leader election.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)