chia7712 commented on code in PR #16042:
URL: https://github.com/apache/kafka/pull/16042#discussion_r1611813848
##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -1247,7 +1247,8 @@ class ReplicaManager(val config: KafkaConfig,
val usableBytes = adjustForLargeFileSystems(fileStore.getUsableSpace)
logsByDir.get(absolutePath) match {
case Some(logs) =>
- val topicInfos = logs.groupBy(_.topicPartition.topic).map{case
(topic, logs) =>
+ val topicInfos = logs.filter(_.topicPartition.topic.nonEmpty)
Review Comment:
agree to @gaurav-narula
Maybe we can just add a filter to remove the topics having "zero" partitions.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]