lianetm commented on code in PR #16673: URL: https://github.com/apache/kafka/pull/16673#discussion_r1717009724
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -1443,12 +1443,15 @@ public void assign(Collection<TopicPartition> partitions) { // be no following rebalance. // // 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): {}", partitions.stream().map(TopicPartition::toString).collect(Collectors.joining(", "))); - - if (subscriptions.assignFromUser(new HashSet<>(partitions))) - applicationEventHandler.add(new NewTopicsMetadataUpdateRequestEvent()); + Timer timer = time.timer(Long.MAX_VALUE); Review Comment: seems sensible to me, I would expect that no api call should block for more than the defaultApiTimeout unless it takes a timeout as parameter, but I would probably suggest we do that separately, what do you think? Just to have the time to think about it and validate the change (unsubscribe is a lot more complicated, leaved group, executes callbacks, ...) -- 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