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 2009/04/22 16:52:47 UTC

[jira] Updated: (JCR-2080) DataStore: garbage collection can fail when using workspace maxIdleTime

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

Jukka Zitting updated JCR-2080:
-------------------------------

    Fix Version/s: 1.5.5

Merged to the 1.5 branch in revision 767554.

> DataStore: garbage collection can fail when using workspace maxIdleTime
> -----------------------------------------------------------------------
>
>                 Key: JCR-2080
>                 URL: https://issues.apache.org/jira/browse/JCR-2080
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>             Fix For: 1.5.5
>
>
> The GarbageCollectorTest fails because some workspaces have an idle timeout. The data store garbage collector should prevent workspace close-on-idle.
> Proposed solution: instead of using the 'regular' system sessions in the garbage collector, use special 'registered system sessions'. The sessions get garbage collected when no longer used, that means this patch requires that JCR-1216 "Unreferenced sessions should get garbage collected" is applied. So for each workspace, the code is:
> // this will initialize the workspace if required
> wspInfo.getSystemSession();
> SessionImpl session = SystemSession.create(rep, wspInfo.getConfig());
> // mark this session as 'active' for so the workspace does
> // not get disposed by workspace-janitor until the garbage collector is done
> rep.onSessionCreated(session);            

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.