jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-446) Prevent logins during repository shutdown
Date Sat, 16 Sep 2006 09:30:22 GMT
     [ http://issues.apache.org/jira/browse/JCR-446?page=all ]

Jukka Zitting updated JCR-446:

    Attachment: shutdown-lock.patch

Attached a proposed patch that implements the shutdown lock idea. The lock is a ReadWrite
lock that allows any number of concurrent readers (logins) but only one concurrent writer

Passes all unit tests and seems to work fine under normal loads. I'll apply the patch unless
anyone objects.

> Prevent logins during repository shutdown
> -----------------------------------------
>                 Key: JCR-446
>                 URL: http://issues.apache.org/jira/browse/JCR-446
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.0, 1.0.1, 0.9
>            Reporter: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.1
>         Attachments: shutdown-lock.patch
> Related to the last comment in JCR-445, should we prevent new sessions from being created
during repository shutdown? It is an odd chance to run into a problem like that, but it seems
like the issue could be easily solved by making getWorkspaceInfo() synchronized and adding
sanityCheck() calls to the createSession() methods.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message