You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2006/09/16 11:30:22 UTC

[jira] Updated: (JCR-446) Prevent logins during repository shutdown

     [ 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 (shutdown).

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