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

add checks/asserts if you search across a closed reader

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5, 4.0-ALPHA
    • None
    • None
    • 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.patch
          20 kB
          Michael McCandless
        2. LUCENE-3439_test.patch
          3 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: