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

 ##########
 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:
   This seems be a higher level above the zk path update. And maybe bring in 
no-need sleep(). 

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


With regards,
Apache Git Services

Reply via email to