kirktrue commented on code in PR #15438: URL: https://github.com/apache/kafka/pull/15438#discussion_r1506924502
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -988,12 +988,11 @@ public List<PartitionInfo> partitionsFor(String topic, Duration timeout) { throw new TimeoutException(); } - final TopicMetadataApplicationEvent topicMetadataApplicationEvent = - new TopicMetadataApplicationEvent(topic, timeout.toMillis()); - wakeupTrigger.setActiveTask(topicMetadataApplicationEvent.future()); + final TopicMetadataEvent topicMetadataEvent = new TopicMetadataEvent(Optional.of(topic), timeout.toMillis()); + wakeupTrigger.setActiveTask(topicMetadataEvent.future()); Review Comment: Done. -- 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