jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manfred Baedke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3573) Improve token based login concurrency
Date Tue, 04 Mar 2014 13:32:21 GMT

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

Manfred Baedke commented on JCR-3573:
-------------------------------------

Backported to 2.6 in http://svn.apache.org/r1574095

> Improve token based login concurrency
> -------------------------------------
>
>                 Key: JCR-3573
>                 URL: https://issues.apache.org/jira/browse/JCR-3573
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 2.7, 2.6.6
>
>         Attachments: JCR-3573.patch
>
>
> Currently TokenBasedAuthentication.createToken() is synchronized and therefore serializes
creation of tokens repository wide.
> Removing the synchronization shows test failures because the .tokens node is created
concurrently by multiple sessions. Instead of serializing the calls, we could also use an
optimistic approach. See attached patch. All tests pass.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message