Lucene - Core
  1. Lucene - Core
  2. LUCENE-2300

IndexWriter should never pool readers for external segments

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.3, 3.0.2, 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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.

      1. LUCENE-2300.patch
        2 kB
        Michael McCandless

        Activity

        Hide
        Michael McCandless added a comment -

        backport

        Show
        Michael McCandless added a comment - backport

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development