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

Mod count in permission store requires cluster wide synchronization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.19
    • core
    • None

    Description

      The current permission store implementation keeps a mod count property on some of the nodes to detect changes and update/invalidate a cache when required. In general this introduces a contention point when there are concurrent modifications of access control entries for a given user. Those concurrent changes may introduce conflicts and commits may have to be retried after a rebase. This still works somewhat OK when there is just a single oak instance, because both segment and document store implementation will eventually fall back to locking and serialize the commits. However, it does not work well in a cluster, unless we apply the same locking cluster wide.

      See also discussion here:
      http://markmail.org/message/k64udmgc3ctaqmn2

      Attachments

        1. OAK-1471.patch
          3 kB
          Marcel Reutegger

        Issue Links

          Activity

            People

              tripod Tobias Bocanegra
              mreutegg Marcel Reutegger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: