[ 
https://issues.apache.org/jira/browse/JCR-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899332#action_12899332
 ] 

Thomas Mueller commented on JCR-2686:
-------------------------------------

Hi,

You are right. Looking at the code, I'm not sure if calling close() already 
interrupts the "mark" phase if isPersistenceManagerScan() is false (because 
close() logs out the session). But the persistence manager scan isn't stopped. 
It should be relatively easy to implement and test this feature.

The "sweep" phase can't be interrupted currently, but I guess that's not the 
problem? I don't know how long a "sweep" call takes, but I guess not that long 
(a few seconds at most?)


> Data store garbage collection: interrupt mark
> ---------------------------------------------
>
>                 Key: JCR-2686
>                 URL: https://issues.apache.org/jira/browse/JCR-2686
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>    Affects Versions: 2.1.0
>            Reporter: Stephan Huttenhuis
>            Assignee: Thomas Mueller
>
> It would be nice if the DataStore GarbageCollector can be interrupted during 
> a mark. This allows applications that use JackRabbit to shutdown without 
> having to wait for the mark to complete.

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

Reply via email to