You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Christine Poerschke (Jira)" <ji...@apache.org> on 2021/03/11 18:18:00 UTC

[jira] [Commented] (SOLR-14607) LTR Query, timeAllowed parameter causes a timeout exception with no result

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

Christine Poerschke commented on SOLR-14607:
--------------------------------------------

Thanks [~limingnihao] for opening this ticket here and pull requests for it!
{quote}...
 Exception information:
 ...
 This exception occurs in two places:
 ...
{quote}
If it's possible to share, could you share the detailed stacktrace from how you are experiencing the issue?

I think I can reproduce the issue with the techproducts example using the [https://solr.apache.org/guide/8_8/learning-to-rank.html#quick-start-with-ltr] steps and a Solr feature that is deliberately "too slow" relative to the query's {{timeAllowed}} but this artificial scenario could differ from how you experience the issue.
{code:java}
{
  "name" : "q_sleep",
  "class" : "org.apache.solr.ltr.feature.SolrFeature",
  "params" : {
    "q" : "{!func}add(12345,sleep(12345,0))"
  }
}
{code}

> LTR Query, timeAllowed parameter causes a timeout exception with no result
> --------------------------------------------------------------------------
>
>                 Key: SOLR-14607
>                 URL: https://issues.apache.org/jira/browse/SOLR-14607
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - LTR
>    Affects Versions: main (9.0)
>            Reporter: Dawn
>            Priority: Minor
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> When using the LTR, open timeAllowed parameter, LTR feature of query may call 'ExitableFilterAtomicReader.CheckAndThrow' timeout checks.
> If a timeout occurs at this point, the exception ExitingReaderException is thrown, Lead to null result.
> Exception information:
> {code:java}
>  The request took too long to iterate over terms. Timeout: timeoutAt: 50321611131050 (System.nanoTime(): 50321639573838), TermsEnum=org.apache.lucene.codecs.blocktree.SegmentTermsEnum@62eaeeaa
> {code}
>  
> Can hold this exception in the LTR, returning partial results rather than null.
> This exception occurs in two places:
> 1. 'LTRScoringQuery.CreateWeight' or 'LTRScoringQuery.createWeightsParallel'. Here is the loading stage, timeout directly end is acceptable.
> 2. 'ModelWeight.scorer'. This is a stage that evaluates each Doc and can catch the exception, returns the computed document.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)