AayushSaini101 commented on code in PR #7416:
URL: https://github.com/apache/rocketmq/pull/7416#discussion_r1342308776


##########
client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java:
##########
@@ -381,6 +381,11 @@ public void createTopic(final String addr, final String 
defaultTopic, final Topi
         throws RemotingException, MQBrokerException, InterruptedException, 
MQClientException {
         Validators.checkTopicConfig(topicConfig);
 
+        if 
(getTopicListFromNameServer(timeoutMillis).getTopicList().contains(topicConfig.getTopicName()))
 {
+

Review Comment:
   Thank you @joeCarf I will change.  Actually, i want to fetch all the topics 
present in the cluster but unable to find out. I checked this approach but this 
is not working, and causing a test case to fail. When i debug the test case. I 
found the getTopicList() method returning null response.



-- 
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: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to