Technoboy- commented on code in PR #19851:
URL: https://github.com/apache/pulsar/pull/19851#discussion_r1144181575
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java:
##########
@@ -1165,8 +1165,14 @@ public CompletableFuture<Boolean>
checkTopicOwnership(TopicName topicName) {
}
public CompletableFuture<Void> removeOwnedServiceUnitAsync(NamespaceBundle
nsBundle) {
- return ownershipCache.removeOwnership(nsBundle)
- .thenRun(() ->
bundleFactory.invalidateBundleCache(nsBundle.getNamespaceObject()));
+ CompletableFuture<Void> future;
+ if (ExtensibleLoadManagerImpl.isLoadManagerExtensionEnabled(config)) {
Review Comment:
I see `ExtensibleLoadManagerImpl.isLoadManagerExtensionEnabled(config)` in
many places, we can define a field for this in the constructor.
--
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]