Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9180

Optimise synchronisation between threads when writing to 3rd level segment cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.34.0
    • None
    • None

    Description

      Currently threads that are updating 3rd level segment cache, are obtaining lock on the instance of HashMap, before inserting segmentId.

      This can be optimised by using Set, obtained from ConcurrentHashMap.newKeySet().

      Attachments

        1. OAK-9180.patch
          2 kB
          Miroslav Smiljanic
        2. OAK-9180_v2.patch
          5 kB
          Miroslav Smiljanic

        Activity

          People

            adulceanu Andrei Dulceanu
            miroslav Miroslav Smiljanic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: