jolshan commented on a change in pull request #9684: URL: https://github.com/apache/kafka/pull/9684#discussion_r550904963
########## File path: core/src/main/scala/kafka/zk/KafkaZkClient.scala ########## @@ -621,10 +621,10 @@ class KafkaZkClient private[zk] (zooKeeperClient: ZooKeeperClient, isSecure: Boo case Code.NONODE => None case _ => throw getDataResponse.resultException.get } - }.map(_.get) - .map(topicIdAssignment => (topicIdAssignment.topic, - topicIdAssignment.topicId.getOrElse( - throw new IllegalStateException("Topic " + topicIdAssignment.topic + " does not have a topic ID.")))) + }.filter(_.isDefined) Review comment: This will change soon with the new PR I'll be opening tomorrow that gates topic IDs behind IBP 2.8. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org