dengziming commented on a change in pull request #11173: URL: https://github.com/apache/kafka/pull/11173#discussion_r685658315
########## File path: core/src/main/scala/kafka/tools/GetOffsetShell.scala ########## @@ -124,6 +125,7 @@ object GetOffsetShell { config.setProperty(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, brokerList) config.setProperty(ConsumerConfig.CLIENT_ID_CONFIG, clientId) val consumer = new KafkaConsumer(config, new ByteArrayDeserializer, new ByteArrayDeserializer) + val client = Admin.create(config) Review comment: This is a good idea and it's easy, we only need to list topics and then describe topics. And I also find that we can optimize this by filter topics before describing topics, but this will need some extra work. What do you think? -- 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