jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-2080) DataStore: garbage collection can fail when using workspace maxIdleTime
Date Wed, 22 Apr 2009 09:01:47 GMT
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


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.


Mime
View raw message