YutaLin commented on code in PR #19630:
URL: https://github.com/apache/kafka/pull/19630#discussion_r2080656237


##########
core/src/main/scala/kafka/server/RemoteLeaderEndPoint.scala:
##########
@@ -126,14 +128,15 @@ class RemoteLeaderEndPoint(logPrefix: String,
     }
   }
 
-  override def fetchEpochEndOffsets(partitions: Map[TopicPartition, 
EpochData]): Map[TopicPartition, EpochEndOffset] = {
+  override def fetchEpochEndOffsets(partitions: java.util.Map[TopicPartition, 
OffsetForLeaderEpochRequestData.OffsetForLeaderPartition]): 
java.util.Map[TopicPartition, EpochEndOffset] = {
+    val tmpPartitions = partitions.asScala.toMap
     if (partitions.isEmpty) {
       debug("Skipping leaderEpoch request since all partitions do not have an 
epoch")
-      return Map.empty
+      return java.util.Collections.emptyMap()

Review Comment:
   Thanks for the reminder, I have checked all the files and used `java.util` 
instead of `java.collections`



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

Reply via email to