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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.0
    • main (10.0), 9.6
    • contrib - LTR
    • 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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              limingnihao Shiming Li
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h