Demogorgon314 commented on code in PR #19538:
URL: https://github.com/apache/pulsar/pull/19538#discussion_r1118531765


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java:
##########
@@ -717,6 +721,33 @@ private Optional<Pair<String, String>> 
getLeastLoadedFromLoadManager(ServiceUnit
     }
 
     public CompletableFuture<Void> unloadNamespaceBundle(NamespaceBundle 
bundle) {
+        return unloadNamespaceBundle(bundle, null);
+    }
+
+    public CompletableFuture<Void> unloadNamespaceBundle(NamespaceBundle 
bundle, @Nullable String destinationBroker) {
+        if (ExtensibleLoadManagerImpl.isLoadManagerExtensionEnabled(config)) {
+            ExtensibleLoadManagerWrapper loadManagerWrapper = 
(ExtensibleLoadManagerWrapper) loadManager.get();
+            ExtensibleLoadManagerImpl extensibleLoadManager = 
loadManagerWrapper.get();

Review Comment:
   Updated.



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

Reply via email to