eolivelli commented on a change in pull request #12378:
URL: https://github.com/apache/pulsar/pull/12378#discussion_r746682504
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/common/naming/NamespaceBundleFactory.java
##########
@@ -204,6 +207,25 @@ public NamespaceBundle
getBundlesWithHighestTopics(NamespaceName nsname) {
});
}
+ public NamespaceBundle getBundleWithHighestThroughput(NamespaceName
nsName) {
+ LoadManager loadManager = pulsar.getLoadManager().get();
+ if (loadManager instanceof ModularLoadManagerWrapper) {
Review comment:
`instanceof` is usually a code smell, but I cannot find a better way to
suggest
--
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]