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

DWStallControl can deadlock IW if no flushes are running / pending

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA
    • core/index
    • None
    • New, Patch Available

    Description

      DWStallControl currently only checks if the net bytes used by all the DWPT and deletes exceeds the stall limit (2*MAX_RAM_BUFFER). This is generally a very good default but in certain situations we can exceed this limit even without an ongoing flush. Stalling is used to prevent IW overloading due to slow flushes etc. which should not happen too often in practice. With a smallish RAM Buffer and a bigger document we can easily get into the stage where we stall the DW without a chance to free up the memory.

      I think we should make sure that a pending or running flush can free up enough memory to unstall.

      Attachments

        1. LUCENE-4071.patch
          7 kB
          Simon Willnauer
        2. LUCENE-4071.patch
          5 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: