lianetm commented on code in PR #19917:
URL: https://github.com/apache/kafka/pull/19917#discussion_r2136213734


##########
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.sortedTopicPartitions(revokedPartitions));

Review Comment:
   agree, and btw, this should be already sorted I expect (all these partition 
sets are internally `SortedSet` exactly for this, better logs).  We can 
probably change the input param type to `SortedSet<TopicPartition>` in this 
func 



-- 
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

Reply via email to