Owen-CH-Leung commented on code in PR #14136:
URL: https://github.com/apache/kafka/pull/14136#discussion_r1292378925


##########
core/src/main/java/kafka/log/remote/RemoteLogManager.java:
##########
@@ -280,13 +285,18 @@ public RemoteStorageManager storageManager() {
         return remoteLogStorageManager;
     }
 
+    public MetadataCache metadataCache() {
+        return metaDataCache;
+    }
+
     private Stream<Partition> filterPartitions(Set<Partition> partitions) {
         // We are not specifically checking for internal topics etc here as 
`log.remoteLogEnabled()` already handles that.
         return partitions.stream().filter(partition -> 
partition.log().exists(UnifiedLog::remoteLogEnabled));
     }
 
     private void cacheTopicPartitionIds(TopicIdPartition topicIdPartition) {
-        Uuid previousTopicId = 
topicPartitionIds.put(topicIdPartition.topicPartition(), 
topicIdPartition.topicId());
+        Map<String, Uuid> mapping = metaDataCache.topicNamesToIds();

Review Comment:
   Thanks. I've removed this logic



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

Reply via email to