jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Launay <sebastien.lau...@anyware-tech.com>
Subject Re: VersionHistory cleanup (JCR-134)
Date Fri, 05 Sep 2008 12:59:36 GMT
Hi all,

I try to submit a patch but i have not received any feedback from the
jackrabbit team so far.

This patch allows to get rid of orphan version history when calling
VersionHistory#removeVersion(String) and i was forced to add methods
for providing the needed objects.
This patch is thus a little messy but i think it fixes the issue.

I will be happy to adapt it if you can provide me with more information.


Sébastien Launay

Sébastien Launay a écrit :
> Hi all,
> I need a fix or a work around on the JCR-134 [1] issue.
> Indeed, i create a lot of nodes with versions and when they are useless
> we remove them (the nodes and all its versions) but the disk space used
> in 'repository/version' is bigger than before creating these nodes.
> This is because there are more and more orphan VersionHistory nodes
> in the version storage branch.
> Some solutions have been proposed but none of them have been
> implemented as they are either complex or expensive.
> I would be happy to create a patch for the right solution.
> I do not know what the right solution is but using a ref count on the
> VersionHistory node in custom property as Cédric Damioli said
> might be a good start...
> A work around might be to provide a method for cleaning orphan
> that can be launched periodically by Jackrabbit or by the application...
> What do you think ?
> Regards,
> [1] https://issues.apache.org/jira/browse/JCR-134
> --
> Sébastien Launay

View raw message