hangc0276 commented on code in PR #16401:
URL: https://github.com/apache/pulsar/pull/16401#discussion_r915367651
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/UniformLoadShedder.java:
##########
@@ -76,7 +76,7 @@ public Multimap<String, String> findBundlesForUnloading(final
LoadData loadData,
MutableDouble minThroughputRate = new MutableDouble(Integer.MAX_VALUE);
brokersData.forEach((broker, data) -> {
//broker with one bundle can't be considered for bundle unloading
- if (data.getLocalData().getBundles().size() <= 1) {
+ if (data.getLocalData().getBundles().size() == 1) {
Review Comment:
It just selects bundles for unloading. If one broker with one or doesn't
have any bundles, it will skip this cycle.
--
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]