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

timeAllowed is returning wrong results on the same query submitted with different timeAllowed limits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.1, 5.4, 6.0
    • 5.3.1
    • None
    • None

    Description

      William Bell raised a question on the user's list. The scenario is
      > send a query that exceeds timeAllowed
      > send another identical query with larger timeAllowed that does NOT time out

      The results from the second query are not correct, they reflect the doc count from the first query.

      It apparently has to do with filter queries being inappropriately created and re-used. I've attached a test case that illustrates the problem.

      There are three tests here.
      testFilterSimpleCase shows the problem.

      testCacheAssumptions is my hack at what I think the states of the caches should be, but has a bunch of clutter so I'm Ignoring it for now. This should be un-ignored and testFilterSimpleCase removed when there's any fix proposed. The assumptions may not be correct though.

      testQueryResults shows what I think is a problem, the second call that does NOT exceed timeAllowed still reports partial results.

      Attachments

        1. SOLR-7990.patch
          17 kB
          Yonik Seeley
        2. SOLR-7990.patch
          15 kB
          Yonik Seeley
        3. SOLR-7990.patch
          9 kB
          Yonik Seeley
        4. SOLR-7990.patch
          2 kB
          Yonik Seeley
        5. SOLR-7990_filterFix.patch
          1 kB
          Yonik Seeley
        6. SOLR-7990.patch
          9 kB
          Erick Erickson
        7. SOLR-7990.patch
          11 kB
          Erick Erickson

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            erickerickson Erick Erickson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: