CalvinConfluent commented on code in PR #15265: URL: https://github.com/apache/kafka/pull/15265#discussion_r1499752721
########## clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java: ########## @@ -2108,9 +2146,12 @@ void handleFailure(Throwable throwable) { public DescribeTopicsResult describeTopics(final TopicCollection topics, DescribeTopicsOptions options) { if (topics instanceof TopicIdCollection) return DescribeTopicsResult.ofTopicIds(handleDescribeTopicsByIds(((TopicIdCollection) topics).topicIds(), options)); - else if (topics instanceof TopicNameCollection) + else if (topics instanceof TopicNameCollection) { + if (options.useDescribeTopicsApi()) { + return DescribeTopicsResult.ofTopicNameIterator(new DescribeTopicPartitionsIterator(((TopicNameCollection) topics).topicNames(), options)); Review Comment: @mumrah If we need to spend more time on public discussion, maybe we can first have a simple version like paging on a topic level. Also, limit the number of topics loading in memory like maybe 50 to accomplish the short-term goal of avoiding OOM. cc @artemlivshits -- 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