Hongten commented on code in PR #11331:
URL: https://github.com/apache/pulsar/pull/11331#discussion_r1105566879
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/resourcegroup/ResourceQuotaCalculatorImpl.java:
##########
@@ -36,9 +36,16 @@ public long computeLocalQuota(long confUsage, long myUsage,
long[] allUsages) th
totalUsage += usage;
}
- if (confUsage < 0 || myUsage < 0 || totalUsage < 0) {
- String errMesg = String.format("Configured usage (%d), or local
usage (%d) or total usage (%d) is negative",
- confUsage, myUsage, totalUsage);
+ if (confUsage < 0) {
Review Comment:
I think this code can be moved before line 33.
--
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]