[
https://issues.apache.org/jira/browse/SLING-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288774#comment-13288774
]
Felix Meschberger commented on SLING-2501:
------------------------------------------
> I wanted to also include some tests, but I wasn't sure if the GC behavior
> included in jackrabbit-core
> should be in the scope for the integrations tests in Sling.
I agree, that Sling cannot check whether GC is really operating. But we could
check whether the RepositoryManager service is registered and that the close
method throws and that the createDataStoreGarbageCollector() method properly
returns a DataStoreGarbageCollector.
> Expose DataStore GarbageCollector to be able to clean deleted filed from the
> Repository
> ---------------------------------------------------------------------------------------
>
> Key: SLING-2501
> URL: https://issues.apache.org/jira/browse/SLING-2501
> Project: Sling
> Issue Type: Improvement
> Components: JCR
> Affects Versions: JCR Jackrabbit Server 2.1.0
> Reporter: Dragos Dascalita Haut
> Labels: patch
> Attachments:
> exposing_GC_from_SlingServerRepository_to_be_able_to_clean_JCR_DataStore.patch
>
>
> Currently Sling is not exposing any mean to be able to perform GC operations
> on a JCR Repository. In this way, a repository managing larger docs, images,
> and especially videos, may grow in size rapidly and there is no way to clean
> the disk when files are deleted.
> It would be nice to have the RepositoryManager exposed through
> SlingServerRepository, and thus be able to create a Date Store Garbage
> Collector and clean the repository.
--
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