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

UserPrincipalProvider may cause many conflicts when under load

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core, security
    • None

    Description

      UserPrincipalProvider can be configured to periodically cache group membership by writing group principals on a rep:cache node. This will result in thundering herd problem when the system is under load and the expiration time for the cache is reached. Incoming requests that authenticate concurrently will all try to refresh the cache and cause conflicts because each request tries to set a new expiration time that is slightly different from the others.

      Attachments

        1. LoginTest_20231010_172626_with_patch.csv
          0.6 kB
          Nicola Scendoni
        2. LoginTest_20231010_173013_without_patch.csv
          0.6 kB
          Nicola Scendoni

        Issue Links

          Activity

            People

              nscendoni Nicola Scendoni
              nscendoni Nicola Scendoni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: