You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2024/07/01 10:21:00 UTC

[jira] [Comment Edited] (OAK-10451) UserPrincipalProvider may cause many conflicts when under load

    [ https://issues.apache.org/jira/browse/OAK-10451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17861062#comment-17861062 ] 

Julian Reschke edited comment on OAK-10451 at 7/1/24 10:20 AM:
---------------------------------------------------------------

CachedPrincipalMembershipReaderTest seems to fail on Java 17: https://ci-builds.apache.org/job/Jackrabbit/job/jackrabbit-oak-trunk-java17/org.apache.jackrabbit$oak-core/35/testReport/org.apache.jackrabbit.oak.security.user/CachedPrincipalMembershipReaderTest/testReadMembershipForNonUser_name_Cache_Max_Stale___10000_/

[~nscendoni] - could you please have a look?

(re-opened)

Seems that is used to overwrite the logger for the tested class; this is entirely unneeded because we have {{LogCustomizer}} for that.


was (Author: reschke):
CachedPrincipalMembershipReaderTest seems to fail on Java 17: https://ci-builds.apache.org/job/Jackrabbit/job/jackrabbit-oak-trunk-java17/org.apache.jackrabbit$oak-core/35/testReport/org.apache.jackrabbit.oak.security.user/CachedPrincipalMembershipReaderTest/testReadMembershipForNonUser_name_Cache_Max_Stale___10000_/

[~nscendoni] - could you please have a look?

(re-opened)

> UserPrincipalProvider may cause many conflicts when under load
> --------------------------------------------------------------
>
>                 Key: OAK-10451
>                 URL: https://issues.apache.org/jira/browse/OAK-10451
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, security
>            Reporter: Nicola Scendoni
>            Assignee: Nicola Scendoni
>            Priority: Major
>             Fix For: 1.66.0
>
>         Attachments: LoginTest_20231010_172626_with_patch.csv, LoginTest_20231010_173013_without_patch.csv
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)