dajac commented on a change in pull request #8295:
URL: https://github.com/apache/kafka/pull/8295#discussion_r455765374



##########
File path: core/src/main/scala/kafka/server/ReplicaManager.scala
##########
@@ -1077,7 +1077,7 @@ class ReplicaManager(val config: KafkaConfig,
           // Try the read first, this tells us whether we need all of 
adjustedFetchSize for this partition
           val readInfo: LogReadInfo = partition.readRecords(
             fetchOffset = fetchInfo.fetchOffset,
-            currentLeaderEpoch = fetchInfo.currentLeaderEpoch,
+            currentLeaderEpoch = toScalaOption(fetchInfo.currentLeaderEpoch),

Review comment:
       Btw, you can use `.asScala` on a Java Option to convert it directly.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to