divijvaidya commented on code in PR #13096: URL: https://github.com/apache/kafka/pull/13096#discussion_r1067061923
########## core/src/main/scala/kafka/server/KafkaApis.scala: ########## @@ -1967,7 +1967,7 @@ class KafkaApis(val requestChannel: RequestChannel, // Special handling to add duplicate topics to the response val topics = createPartitionsRequest.data.topics.asScala.toSeq val dupes = topics.groupBy(_.name) - .filter { _._2.size > 1 } + .filter { _._2.lengthCompare(1) > 0 } Review Comment: FYI reviewers: comparison of scala `Seq` hence, lengthCompare() is beneficial. -- 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