gus-asf commented on code in PR #2244:
URL: https://github.com/apache/solr/pull/2244#discussion_r1489578308
##########
solr/core/src/java/org/apache/solr/search/QueryLimits.java:
##########
@@ -41,11 +43,15 @@ private QueryLimits() {}
* statement will hinge on hasXXXLimit() static method attached to the
implementation class.
*
* @param req the current SolrQueryRequest.
+ * @param threadCpuTime current thread CPU time monitor.
*/
- public QueryLimits(SolrQueryRequest req) {
+ public QueryLimits(SolrQueryRequest req, ThreadCpuTime threadCpuTime) {
if (hasTimeLimit(req)) {
limits.add(new SolrQueryTimeLimit(req));
}
+ if (hasCpuLimit(req)) {
+ limits.add(new CpuQueryTimeLimit(req, threadCpuTime));
Review Comment:
Actually, I like the idea of tracking the parameter names.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]