divijvaidya commented on code in PR #14662: URL: https://github.com/apache/kafka/pull/14662#discussion_r1380017613
########## core/src/main/scala/kafka/server/ReplicaManager.scala: ########## @@ -2659,13 +2645,14 @@ class ReplicaManager(val config: KafkaConfig, } if (partitionsToStopFetching.nonEmpty) { - stopPartitions(partitionsToStopFetching) + val partitionsToStop = partitionsToStopFetching.map { case (tp, deleteLocalLog) => StopPartition(tp, deleteLocalLog) }.toSet + stopPartitions(partitionsToStop) stateChangeLogger.info(s"Stopped fetchers as part of controlled shutdown for ${partitionsToStopFetching.size} partitions") Review Comment: this probably needs to use `partitionsToStop.size` -- 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