atris commented on a change in pull request #1626: URL: https://github.com/apache/lucene-solr/pull/1626#discussion_r447048456
########## File path: solr/core/src/java/org/apache/solr/core/SolrConfig.java ########## @@ -804,6 +813,14 @@ private void initLibs(SolrResourceLoader loader, boolean isConfigsetTrusted) { loader.reloadLuceneSPI(); } + private void validateMemoryBreakerThreshold() { + if (useCircuitBreakers) { + if (memoryCircuitBreakerThreshold > 100 || memoryCircuitBreakerThreshold < 0) { Review comment: This is more of a sanity test to ensure that the incoming values lie in the range of percentage. If we wish to restrain the actual domain of values that memoryCircuitBreakerThreshold can take, I can add another check and add the same in the documentation. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org