[ 
https://issues.apache.org/jira/browse/SOLR-18629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150019#comment-18150019
 ] 

ASF subversion and git services commented on SOLR-18629:
--------------------------------------------------------

Commit 0d0f3910e1f00e81b109b77ad851836c210db061 in solr's branch 
refs/heads/main from Amrit Sarkar
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=0d0f3910e1f ]

SOLR-18629: Publish shard CPU time when a query limit ends a distributed search 
early (#5307)

> 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]

  • [jira] [Commented] (SOLR... ASF subversion and git services (Jira) via issues

Reply via email to