lianetm commented on code in PR #19917: URL: https://github.com/apache/kafka/pull/19917#discussion_r2141104339
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java: ########## @@ -1135,7 +1134,9 @@ CompletableFuture<Void> revokePartitions(Set<TopicPartition> partitionsToRevoke) // Ensure the set of partitions to revoke are still assigned Set<TopicPartition> revokedPartitions = new HashSet<>(partitionsToRevoke); revokedPartitions.retainAll(subscriptions.assignedPartitions()); - log.info("Revoking previously assigned partitions {}", revokedPartitions.stream().map(TopicPartition::toString).collect(Collectors.joining(", "))); + + if (log.isInfoEnabled()) + log.info("Revoking previously assigned partitions {}", Utils.topicPartitionString(revokedPartitions)); Review Comment: Here also I expect we can simplify and just print the set? Only difference is that it will include the brackets, which is ok I expect? -- 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