You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Stefan Egli (Jira)" <ji...@apache.org> on 2023/04/24 12:31:00 UTC
[jira] [Assigned] (OAK-10199) Skeleton of an additional, extendable "detail" garbage collector based on only "_modified"
[ https://issues.apache.org/jira/browse/OAK-10199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Egli reassigned OAK-10199:
---------------------------------
Assignee: Rishabh Daim (was: Stefan Egli)
> Skeleton of an additional, extendable "detail" garbage collector based on only "_modified"
> ------------------------------------------------------------------------------------------
>
> Key: OAK-10199
> URL: https://issues.apache.org/jira/browse/OAK-10199
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: documentmk
> Reporter: Stefan Egli
> Assignee: Rishabh Daim
> Priority: Major
>
> DocumentNodeStore's revision garbage collector currently doesn't clean up 100% of garbage. Several of those gaps have so far been identified, including:
> * OAK-8646 : "Clean up changes from orphaned branch commits"
> * OAK-10193 : "Garbage collect deleted properties"
> The common aspect of the above is the fact that cleaning up that garbage on an existing repository will mean to do a full scan of the entire repository, to find and delete such garbage.
> The current working title for this is "detail gc"
> The ticket here is about creating a skeleton of a garbage collector that the above, individual garbage types can then "hook into".
> There are two parts of the cleanup:
> * an initial, full repository scan
> * an iterative, continuous scan (eg after the above full scan has completed)
> The full repository scan is optional - one could decide to leave the garbage and not worry about it (but enable the continuous scan and thus clean up documents that are changed in the future lazily).
> While the two parts could in theory be based on a different query, it _can_ also be done on the same query.
> One suggested query is to go through all documents where "_modified" is between the previous gc run and an increment, but older than the 'versionGcMaxAgeInSecs' (24h by default) - plus eg taking checkpoints into account.
> A full repository scan is then characterized by setting this "previous gc run" pointer to zero.
> In particular for the full repository scan it is necessary for the gc to run in reasonably small batches - and apply a voluntary throttle, to avoid system overload.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)