Lucene - Core
  1. Lucene - Core
  2. LUCENE-3439

add checks/asserts if you search across a closed reader

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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!)

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development