Nicklee007 commented on code in PR #16573:
URL: https://github.com/apache/pulsar/pull/16573#discussion_r920122630
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LeastResourceUsageWithWeight.java:
##########
@@ -125,6 +125,11 @@ private double
updateAndGetMaxResourceUsageWithWeight(String broker, BrokerData
@Override
public Optional<String> selectBroker(Set<String> candidates, BundleData
bundleToAssign, LoadData loadData,
ServiceConfiguration conf) {
+ if (candidates.isEmpty()) {
+ log.error("There are no available brokers as candidates at this
point for bundle: {}", bundleToAssign);
Review Comment:
Ok, changed` "error" to "info". I find if not select any broker the
`getLeastLoadedFromLoadManager` has a warn , it's enough for us. PTAl.
--
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]