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

IndexWriter should never pool readers for external segments

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.9.3, 3.0.2, 3.1, 4.0-ALPHA
    • None
    • None
    • New

    Description

      EG when addIndexes is called, it enrolls external segment infos, which are then merged. But merging will simply ask the pool for the readers, and if writer is pooling (NRT reader has been pooled) it incorrectly pools these readers.

      It shouldn't break anything but it's a waste because these readers are only used for merging, once, and they are not opened by NRT reader.

      Attachments

        1. LUCENE-2300.patch
          2 kB
          Michael McCandless

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: