madrob commented on a change in pull request #1737:
URL: https://github.com/apache/lucene-solr/pull/1737#discussion_r471731369
##########
File path:
solr/core/src/java/org/apache/solr/util/circuitbreaker/CPUCircuitBreaker.java
##########
@@ -91,11 +91,18 @@ public boolean isTripped() {
@Override
public String getDebugInfo() {
- if (seenCPUUsage.get() == 0L || allowedCPUUsage.get() == 0L) {
+
+ if (seenCPUUsage.withInitial(supplier).get() == 0.0 ||
seenCPUUsage.withInitial(supplier).get() == 0.0) {
Review comment:
withInitial is supposed to be on the declaration, not on each use
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]