dajac commented on code in PR #12187: URL: https://github.com/apache/kafka/pull/12187#discussion_r880176824
########## core/src/main/scala/kafka/cluster/Partition.scala: ########## @@ -706,7 +706,7 @@ class Partition(val topicPartition: TopicPartition, s"and partition state $partitionState since it is already a follower with leader epoch $leaderEpoch.") } - leaderReplicaIdOpt = Some(partitionState.leader) + leaderReplicaIdOpt = Option(partitionState.leader) Review Comment: Good idea. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org