joshua2519 commented on code in PR #20083: URL: https://github.com/apache/kafka/pull/20083#discussion_r2193986394
########## core/src/main/scala/kafka/cluster/Partition.scala: ########## @@ -1098,7 +948,7 @@ class Partition(val topicPartition: TopicPartition, case (brokerId, logEndOffset) => s"broker $brokerId: $logEndOffset" } - val curInSyncReplicaObjects = (curMaximalIsr - localBrokerId).flatMap(getReplica) + val curInSyncReplicaObjects = (curMaximalIsr.asScala.map(_.toInt) - localBrokerId).flatMap(getReplica) Review Comment: Same as https://github.com/apache/kafka/pull/20083#discussion_r2193983660 `curMaximalIsr.asScala.iterator.filter(_.intValue() != localBrokerId).map(_.toInt).flatMap(getReplica).to(Set)` -- 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