Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 33197 invoked from network); 22 Apr 2009 14:53:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 14:53:11 -0000 Received: (qmail 74796 invoked by uid 500); 22 Apr 2009 14:53:10 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 74737 invoked by uid 500); 22 Apr 2009 14:53:10 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 74691 invoked by uid 99); 22 Apr 2009 14:53:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 14:53:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 14:53:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 71265234C003 for ; Wed, 22 Apr 2009 07:52:47 -0700 (PDT) Message-ID: <1408506699.1240411967446.JavaMail.jira@brutus> Date: Wed, 22 Apr 2009 07:52:47 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2080) DataStore: garbage collection can fail when using workspace maxIdleTime In-Reply-To: <1392524074.1240390907800.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.