You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/20 12:28:00 UTC

[GitHub] [pulsar] Technoboy- commented on a change in pull request #11386: [Discuss] Cherry-picking #11310 Fix npe when unloading persistent partitioned topic in branch-2.7.

Technoboy- commented on a change in pull request #11386:
URL: https://github.com/apache/pulsar/pull/11386#discussion_r673066608



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
##########
@@ -1548,9 +1548,9 @@ public void checkTopicNsOwnership(final String topic) throws BrokerServiceExcept
         List<CompletableFuture<Void>> closeFutures = Lists.newArrayList();
         topics.forEach((name, topicFuture) -> {
             TopicName topicName = TopicName.get(name);
-            if (serviceUnit.includes(topicName)) {
+            if (getTopicReference(name).isPresent() && serviceUnit.includes(topicName)) {

Review comment:
       Yes, I see, thanks.
   @eolivelli @codelipenghui .




-- 
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-unsubscribe@pulsar.apache.org

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