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

IndexWriter can flush too early when flushing by RAM usage

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3.2, 2.4
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      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.

        Activity

        Hide
        hossman Hoss Man added a comment -

        targeted for 2.3.2 bug fix release

        Show
        hossman Hoss Man added a comment - targeted for 2.3.2 bug fix release

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development