frankvicky commented on code in PR #19793:
URL: https://github.com/apache/kafka/pull/19793#discussion_r2108582444


##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -983,23 +1003,25 @@ class ReplicaManager(val config: KafkaConfig,
       delayedProducePurgatory.tryCompleteElseWatch(delayedProduce, 
producerRequestKeys.asJava)
     } else {
       // we can respond immediately
-      val produceResponseStatus = initialProduceStatus.map { case (k, status) 
=> k -> status.responseStatus }
+      val produceResponseStatus = new util.HashMap[TopicIdPartition, 
PartitionResponse]
+      initialProduceStatus.foreach { case (k, status) => k -> 
produceResponseStatus.put(k, status.responseStatus) }

Review Comment:
   I think it's ok to use `HashMap` instead of `asJava` conversion.



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