janhoy opened a new pull request, #1905: URL: https://github.com/apache/solr/pull/1905
https://issues.apache.org/jira/browse/SOLR-16968 Introduced a new utility class `AveragingMetricProvider` that will cache the average for a `double` value provided by the breaker. Uses a scheduled executor every 5 seconds, which is shared by all instances of this class. This same utility can be used by other CBs to achieve the same, but I started with `MemoryCircuitBreaker`. As this requires some cleanup of executor threads, CircuitBreaker now implements `Closeable` and the registry will close all CBs on close, which is also called from `CoreContainer#doClose`. *NOTE* that this may conflict with other in-flight CB PRs... -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org