Technoboy- commented on code in PR #21907:
URL: https://github.com/apache/pulsar/pull/21907#discussion_r1455016242


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/UniformLoadShedder.java:
##########
@@ -137,7 +137,7 @@ public Multimap<String, String> 
findBundlesForUnloading(final LoadData loadData,
                         
brokersData.get(msgRateOverloadedBroker.getValue()).getLocalData();
                 if (overloadedBrokerData.getBundles().size() > 1
                         && (msgRateRequiredFromUnloadedBundles.getValue() >= 
conf.getMinUnloadMessage())) {
-                    // Sort bundles by throughput, then pick the bundle which 
can help to reduce load uniformly with
+                    // Sort bundles by msgRate, then pick the bundle which can 
help to reduce load uniformly with

Review Comment:
   Ah, yes, I see the wrong `sorted` method at line 189



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