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

Make CMS smarter about thread priorities

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Spinoff from LUCENE-2161...

      The hard throttling CMS does (blocking the incoming thread that wants
      to launch a new merge) can be devastating when it strikes during NRT
      reopen.

      It can easily happen if a huge merge is off and running, but then a
      tiny merge is needed to clean up recently created segments due to
      frequent reopens.

      I think a small change to CMS, whereby it assigns a higher thread
      priority to tiny merges than big merges, should allow us to increase
      the max merge thread count again, and greatly reduce the chance that
      NRT's reopen would hit this.

        Attachments

        1. LUCENE-2164.patch
          5 kB
          Michael McCandless
        2. LUCENE-2164.patch
          16 kB
          Michael McCandless

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: