You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Gaurav Narula (Jira)" <ji...@apache.org> on 2025/10/09 10:18:00 UTC
[jira] [Created] (KAFKA-19776) Incorrect leaderId and leaderEpoch logged in Partition#makeFollower
Gaurav Narula created KAFKA-19776:
-------------------------------------
Summary: Incorrect leaderId and leaderEpoch logged in Partition#makeFollower
Key: KAFKA-19776
URL: https://issues.apache.org/jira/browse/KAFKA-19776
Project: Kafka
Issue Type: Bug
Reporter: Gaurav Narula
Assignee: Gaurav Narula
[Partition::makeFollower|https://github.com/apache/kafka/blob/be3e40c45ac9a70833ce0d5735ad141a5bd24627/core/src/main/scala/kafka/cluster/Partition.scala#L877] logs the existing leader-id and existing leader epoch if the partition registration has a leader epoch > the existing leader epoch.
There's a bug in the logging as we update the existing leaderId and leaderEpoch with the latest values from partition registration prior to logging them, thereby never logging the existing values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)