cmccabe commented on a change in pull request #10049: URL: https://github.com/apache/kafka/pull/10049#discussion_r571116386
########## File path: core/src/main/scala/kafka/server/MetadataCache.scala ########## @@ -34,16 +34,69 @@ import org.apache.kafka.common.message.UpdateMetadataRequestData.UpdateMetadataP import org.apache.kafka.common.{Cluster, Node, PartitionInfo, TopicPartition, Uuid} import org.apache.kafka.common.message.MetadataResponseData.MetadataResponseTopic import org.apache.kafka.common.message.MetadataResponseData.MetadataResponsePartition +import org.apache.kafka.common.message.{MetadataResponseData, UpdateMetadataRequestData} import org.apache.kafka.common.network.ListenerName import org.apache.kafka.common.protocol.Errors import org.apache.kafka.common.requests.{MetadataResponse, UpdateMetadataRequest} import org.apache.kafka.common.security.auth.SecurityProtocol +trait MetadataCache { + + // errorUnavailableEndpoints exists to support v0 MetadataResponses + def getTopicMetadata( Review comment: The formatting is kind of weird here. Why the blank line after `getTopicMetadata(`? Also, it would be good to have Javadoc for this function ---------------------------------------------------------------- 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