Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14607

LTR Query, timeAllowed parameter causes a timeout exception with no result

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: main (9.0)
    • Fix Version/s: None
    • Component/s: contrib - LTR
    • Labels:
      None

      Description

      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:

       The request took too long to iterate over terms. Timeout: timeoutAt: 50321611131050 (System.nanoTime(): 50321639573838), TermsEnum=org.apache.lucene.codecs.blocktree.SegmentTermsEnum@62eaeeaa
      

       

      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.

       

        Attachments

        1. SOLR-14607-poc.patch
          2 kB
          Christine Poerschke

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              limingnihao Dawn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 10m
                2h 10m