kamalcph commented on PR #20007:
URL: https://github.com/apache/kafka/pull/20007#issuecomment-3026924894

   Besides fixing this issue, the `doesTopicExist` method can also be changed 
to avoid calling the Kcontroller: 
   
   1. Use `ListTopics` request instead of `DescribeTopic` in `doesTopicExist` 
method.
   2. If the `__remote_log_metadata` topic exists, then use that topicId from 
the List response to describe the topic in 
[TBRLMM#isPartitionsCountSameAsConfigured](https://sourcegraph.com/github.com/apache/kafka/-/blob/storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/TopicBasedRemoteLogMetadataManager.java?L491-493)
 call.


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