eolivelli commented on a change in pull request #11386:
URL: https://github.com/apache/pulsar/pull/11386#discussion_r672885794
##########
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:
in the linked PR there was a comment to move
`getTopicReference(name).isPresent()` as last operator
probably it is the case to fix 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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]