jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3573) Improve token based login concurrency
Date Wed, 17 Apr 2013 14:25:16 GMT

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

angela commented on JCR-3573:
-----------------------------

yes... rewrite of the way the tokens are handled in jackrabbit core.  i started doing so ages
ago but never had time to
complete it... so, that's why i was referring to oak. we will most probably never have time
to have that properly cleaned
up anyway. therefore i don't care too much. feel free to apply the patch.
                
> 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
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message