Luke Chen created KAFKA-21378:
---------------------------------

             Summary: Add "leaderEpoch" field in PartitionChangeRecord
                 Key: KAFKA-21378
                 URL: https://issues.apache.org/jira/browse/KAFKA-21378
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Luke Chen


To support "bumpLeaderEpoch" RPC in the future, we should add a "leaderEpoch" 
field in PartitionChangeRecord, and move the leader epoch calculation logic 
from currently each node calculate the leader epoch when replying 
PartitionChangeRecord in PartitionRegistration class, to each time the 
PartitionChangeRecord creates, and each node only needs to take the leaderEpoch 
in the PartitionChangeRecord.

 

We should also consider the backward compatibility in this change.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to