chia7712 commented on code in PR #15823:
URL: https://github.com/apache/kafka/pull/15823#discussion_r1582049275
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:
##########
@@ -1491,7 +1490,7 @@ public void assign(Collection<TopicPartition> partitions)
{
// See the ApplicationEventProcessor.process() method that handles
this event for more detail.
applicationEventHandler.add(new
AssignmentChangeEvent(subscriptions.allConsumed(), time.milliseconds()));
- log.info("Assigned to partition(s): {}", join(partitions, ", "));
+ log.info("Assigned to partition(s): {}", String.join(", ",
Arrays.toString(partitions.toArray())));
Review Comment:
how about
`partitions.stream().map(TopicPartition::toString).collect(Collectors.joining(","))`?
--
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]