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] Resolved: (JCR-2106) SystemSessions created for GarbageCollector are not logged out of
Date Wed, 27 May 2009 10:22:45 GMT

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

Thomas Mueller resolved JCR-2106.
---------------------------------

    Resolution: Fixed

Thanks a lot for the patch!

Committed in revision 779084 (trunk)

> SystemSessions created for GarbageCollector are not logged out of
> -----------------------------------------------------------------
>
>                 Key: JCR-2106
>                 URL: https://issues.apache.org/jira/browse/JCR-2106
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 1.5.5
>            Reporter: Peter Dettman
>            Assignee: Thomas Mueller
>            Priority: Minor
>         Attachments: JCR-2106-2nd.patch, JCR-2106-3rd.patch, JCR-2106.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I have a simple garbage collection task that runs periodically. After upgrading to 1.5.5
it started logging a warning shortly after each run:
> 2009-05-09 03:44:45,480 WARN [org.apache.jackrabbit.core.SessionImpl] - <Unclosed
session detected. The session was opened here: >
> java.lang.Exception: Stack Trace
> 	at org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:239)
> 	at org.apache.jackrabbit.core.SystemSession.<init>(SystemSession.java:76)
> 	at org.apache.jackrabbit.core.SystemSession.create(SystemSession.java:64)
> 	at org.apache.jackrabbit.core.SessionImpl.createDataStoreGarbageCollector(SessionImpl.java:649)
> So it's not my session, but an internally created SystemSession.
> Code I'm using:
>             getTemplate().execute(new JcrCallback()
>             {
>                 public Object doInJcr(Session session)
>                     throws IOException, RepositoryException {
>                     SessionImpl sessionImpl = (SessionImpl)session;
>                     GarbageCollector gc = sessionImpl.createDataStoreGarbageCollector();
>                     gc.scan();
>                     gc.stopScan();
>                     gc.deleteUnused();
>                     return null;
>                 }
>             }, true);

-- 
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