Lucene - Core
  1. Lucene - Core
  2. LUCENE-3798

Potential IndexReader leak in SearcherManager and NRTManager

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      SearcherManager and NRTManager ctors init a new IndexReader and call searcherFactory.newSearcher. The latter can throw IOE,in which case we fail to close the readers. We should wrap the code with a try-finally (success) clause.

      Opening this issue so we don't forget to fix it.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Shai Erera
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development