jolshan commented on a change in pull request #9944:
URL: https://github.com/apache/kafka/pull/9944#discussion_r655649425



##########
File path: core/src/main/scala/kafka/server/metadata/RaftMetadataCache.scala
##########
@@ -226,6 +226,18 @@ class RaftMetadataCache(val brokerId: Int) extends 
MetadataCache with Logging {
     _currentImage.partitions.numTopicPartitions(topic)
   }
 
+  override def topicNamesToIds(): util.Map[String, Uuid] = {
+    _currentImage.partitions.copyReverseIdMap()
+  }
+
+  override def topicIdsToNames(): util.Map[Uuid, String] = {
+    _currentImage.partitions.copyIdMap()
+  }
+
+  override def topicIdInfo(): (util.Map[String, Uuid], util.Map[Uuid, String]) 
= {
+    (topicNamesToIds(), topicIdsToNames())

Review comment:
       Ok. I see what you mean here.




-- 
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


Reply via email to