Lucene - Core
  1. Lucene - Core
  2. LUCENE-2762

Don't leak deleted open file handles with pooled readers

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 3.0.3, 3.1, 4.0-ALPHA
    • Fix Version/s: 2.9.4, 3.0.3, 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If you have CFS enabled today, and pooling is enabled (either directly
      or because you've pulled an NRT reader), IndexWriter will hold open
      SegmentReaders against the non-CFS format of each merged segment.

      So even if you close all NRT readers you've pulled from the writer,
      you'll still see file handles open against files that have been
      deleted.

      This count will not grow unbounded, since it's limited by the number
      of segments in the index, but it's still a serious problem since the
      app had turned off CFS in the first place presumably to avoid risk of
      too-many-open-files. It's also bad because it ties up disk space
      since these files would otherwise be deleted.

      1. LUCENE-2762.patch
        37 kB
        Michael McCandless

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development