codelipenghui commented on a change in pull request #4963: Add more config for 
auto-topic-creation
URL: https://github.com/apache/pulsar/pull/4963#discussion_r321186890
 
 

 ##########
 File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java
 ##########
 @@ -566,6 +574,78 @@ public PartitionedTopicMetadata deserialize(String key, 
byte[] content) throws E
         return metadataFuture;
     }
 
+    protected static PartitionedTopicMetadata 
fetchPartitionedTopicMetadataCheckAllowAutoCreation(
+            PulsarService pulsar, String path, TopicName topicName) {
+        try {
+            return 
fetchPartitionedTopicMetadataCheckAllowAutoCreationAsync(pulsar, path, 
topicName)
+                    .get();
 
 Review comment:
   If it's necessary to call Thread.sleep(), i think more suitable to put it 
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:
[email protected]


With regards,
Apache Git Services

Reply via email to