shibd commented on code in PR #16714:
URL: https://github.com/apache/pulsar/pull/16714#discussion_r926759023
##########
pulsar-broker/src/main/java/org/apache/pulsar/common/naming/NamespaceBundleFactory.java:
##########
@@ -242,11 +242,11 @@ public NamespaceBundle
getBundleWithHighestThroughput(NamespaceName nsName) {
if (loadManager instanceof ModularLoadManagerWrapper) {
NamespaceBundles bundles = getBundles(nsName);
double maxMsgThroughput = -1;
- NamespaceBundle bundleWithHighestThroughput = null;
+ NamespaceBundle bundleWithHighestThroughput =
bundles.getBundles().get(0);
Review Comment:
I don't understand, I think even if the bundle is updated, we should always
be able to find the one with the highest load?
--
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]