Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2549

TimeLimitingCollector's TimeExceededException contains useless relative docid

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9, 2.9.1, 2.9.2, 2.9.3, 3.0, 3.0.1, 3.0.2
    • 2.9.4, 3.0.3, 3.1, 4.0-ALPHA
    • None
    • None
    • New, Patch Available

    Description

      We found another bug with the RandomIndexWriter: When TimeLimitingCollector breaks collection after timeout, it records the last/next collected docid. It does this without rebasing, so the docid is useless. TestTimeLimitingCollector checks the docid, but correctly rebases it (as only this makes sense). Because the RandomIndexWriter uses different merge settings, the index is now sometimes not optimized and so the test fails (which is correct, as the docid is useless for non-optimized index).

      Attached is a patch that fixes this. Please tell me if I should backport to 2.9 and 3.0!

      Attachments

        1. LUCENE-2549.patch
          2 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            uschindler Uwe Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: