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

add checks/asserts if you search across a closed reader

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      if you try to search across a closed reader (and/or searcher too),
      there are no checks, not even assertions statements.

      this results in crazy scary stacktraces deep inside places like FSTs/various term dictionary implementations etc.

      In some situations, depending on codec, you wont even get an error (i'm sure its fun when you try to retrieve the stored fields!)

        Attachments

        1. LUCENE-3439_test.patch
          3 kB
          Robert Muir
        2. LUCENE-3439.patch
          20 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: