jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Michele (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JCR-3449) Improved performance for concurrent read-only access
Date Sun, 21 Oct 2012 20:08:12 GMT

     [ https://issues.apache.org/jira/browse/JCR-3449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Lars Michele updated JCR-3449:

    Status: Patch Available  (was: Open)

One small thing about this patch: in the moment, if one thread closes the session, all other
threads will throw a "Session closed" RepositoryException, but I think this situation has
to be handled by the user.
> Improved performance for concurrent read-only access
> ----------------------------------------------------
>                 Key: JCR-3449
>                 URL: https://issues.apache.org/jira/browse/JCR-3449
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 2.4.3, 2.2.13
>            Reporter: Lars Michele
>            Priority: Minor
>         Attachments: jackrabbit-concurrent-read.patch
> This patch relates to JCR-890. The current implementation allows to share a session across
multiple threads reading, but the locking mechanism used makes this use-case slow. The attached
patch uses a ReentrantReadWriteLock for accessing session internals, which allows concurrent
reads be executed concurrently. The only drawback is, that for the "autofix" feature to work
as before one has to instantiate a thread on such cases, because it cannot be executed in
the read-scope of a the session facing such problems.

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

View raw message