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

IndexWriter can flush too early when flushing by RAM usage

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.3.2, 2.4
    • core/index
    • None
    • New

    Description

      There is a silly bug in how DocumentsWriter tracks its RAM usage:
      whenever term vectors are enabled, it incorrectly counts the space
      used by term vectors towards flushing, when in fact this space is
      recycled per document.

      This is not a functionality bug. All it causes is flushes to happen
      too frequently, and, IndexWriter will use less RAM than you asked it
      to. To work around it you can simply give it a bigger RAM buffer.

      I will commit a fix shortly.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: