mlyahmed commented on a change in pull request #9786:
URL: https://github.com/apache/pulsar/pull/9786#discussion_r588090918



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
##########
@@ -797,9 +798,21 @@ public void unloadNamespaceBundlesGracefully() {
                     return this.loadOrCreatePersistentTopic(topicName, 
createIfMissing);
                 });
             } else {
-                return topics.computeIfAbsent(topic, (topicName) -> {
-                    if (createIfMissing) {
-                        return createNonPersistentTopic(topicName);
+                return topics.computeIfAbsent(topic, (name) -> {
+                    final TopicName topicName = TopicName.get(name);
+                    if (topicName.isPartitioned()) {
+                        try {
+                            final PartitionedTopicMetadata metadata = 
pulsar().getAdminClient().topics()
+                                    
.getPartitionedTopicMetadata(topicName.getPartitionedTopicName());

Review comment:
       Now it is ready (y)




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


Reply via email to