Uploaded image for project: 'Apache Blur'
  1. Apache Blur
  2. BLUR-249

Sync performance issue in the IndexInputCloser class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0, 0.2.1
    • 0.3.0, 0.2.1
    • Blur
    • None

    Description

      While running some load tests on a medium sized cluster I noticed a lot of blocked state on the index-manager threads. These threads are used during the parallel search. Upon inspection of a thread dump I noticed that all the blocked state threads were blocking on line 67 in the IndexInputCloser class. This is to synchronize on a collection addition because the implementation is a HashSet.

      This task is to change the refs field to be a concurrenthashmap using the Collections.newSetFromMap() method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            amccurry Aaron McCurry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: