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 (Closed) (JIRA)" <ji...@apache.org> on 2011/11/08 16:59:52 UTC

[jira] [Closed] (JCR-1954) DataStore: gc.stopScan() should be optional

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

Jukka Zitting closed JCR-1954.
------------------------------

    
> DataStore: gc.stopScan() should be optional
> -------------------------------------------
>
>                 Key: JCR-1954
>                 URL: https://issues.apache.org/jira/browse/JCR-1954
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>             Fix For: 2.0-beta1
>
>
> Data Store garbage collection currently works like this:
> gc.scan();
> gc.stopScan();
> gc.deleteUnused();
> Currently, if stopScan() is not called, an exception is thrown. This is not user friendly. Instead, stopScan() should be optional, and should be allowed any time. It may be used to indicate garbage collection has finished:
> try {
>   gc.scan();
>   ...
>   gc.deleteUnused();
> } finally {
>   gc.stopScan();
> }
> Or when sharing the repository:
> gc1.scan();
> gc2.scan();
> gc1.deleteUnused();
> gc2.stopScan();

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira