jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (JCR-1954) DataStore: gc.stopScan() should be optional
Date Tue, 08 Nov 2011 15:59:52 GMT

     [ 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

        

Mime
View raw message