heesung-sn commented on code in PR #19102:
URL: https://github.com/apache/pulsar/pull/19102#discussion_r1059522860


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java:
##########
@@ -55,6 +55,7 @@
 import org.apache.pulsar.broker.loadbalance.LeaderElectionService;
 import org.apache.pulsar.broker.loadbalance.LoadManager;
 import org.apache.pulsar.broker.loadbalance.ResourceUnit;
+import 
org.apache.pulsar.broker.loadbalance.extensions.ExtensibleLoadManagerImpl;

Review Comment:
   It would be great to add unit tests in NamespaceServiceTest for these 
if-else variations. (assert if the new/old load manager is called for these 
Namespace public funcs).
   
   Or, please add a TODO comment if we want to add such tests later.
   ```
   if (ExtensibleLoadManagerImpl.isLoadManagerExtensionEnabled(config)) {
   // new logic
   } else {
   // old logic
   }
   ```



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