[
https://issues.apache.org/jira/browse/SOLR-18629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152099#comment-18152099
]
ASF subversion and git services commented on SOLR-18629:
--------------------------------------------------------
Commit b7be3f7b6595e3a3c98bc138bc8d64eb9d224f33 in solr's branch
refs/heads/branch_10x from Amrit Sarkar
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=b7be3f7b659 ]
SOLR-18629: Publish shard CPU time when a query limit ends a distributed search
early (#5307)
(cherry picked from commit 0d0f3910e1f00e81b109b77ad851836c210db061)
> cpuTime leaves out shard CPU when a query limit ends a distributed search
> early
> -------------------------------------------------------------------------------
>
> Key: SOLR-18629
> URL: https://issues.apache.org/jira/browse/SOLR-18629
> Project: Solr
> Issue Type: Bug
> Reporter: Amrit Sarkar
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> With {{solr.log.cputime=true}}, a distributed search reports the shards' CPU
> time in the {{cpuTime}} response header. When a query limit ({{timeAllowed}},
> {{cpuAllowed}}, {{memAllowed}}) stops the coordinator after some shards have
> answered, {{SearchHandler.processComponentsDistrib}} returns early and never
> adds it. {{RequestHandlerBase}} then fills {{cpuTime}} with the coordinator's
> own CPU time, so partial results look much cheaper than they were.
> Fix: publish the shard CPU collected so far on each early return, as long as
> at least one shard request finished.
> A shard that throws without {{shards.tolerant}} has the same gap. Not covered
> here.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]