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

Potential IndexReader leak in SearcherManager and NRTManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • None
    • None
    • core/search
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: