[ https://issues.apache.org/jira/browse/JCR-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Mueller resolved JCR-1954. --------------------------------- Resolution: Fixed Fix Version/s: 2.0-beta1 Solved as part of JCR-1865 > 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. - You can reply to this email to add a comment to the issue online.