[
https://issues.apache.org/jira/browse/OAK-4138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426586#comment-15426586
]
Michael Dürig commented on OAK-4138:
------------------------------------
There is to parts to it:
* "Decouple revision cleanup from the flush thread": currently cleanup is
executed on the flush thread. This is problematic for the reasons given in this
issue's description. I would opt for putting cleanup into its own thread.
* "skip flush if already in progress": what I meant here is that instead of
synchronising removal of the old tar files on {{FileStore.pendingRemove}}, we
can just skip removal if already in progress.
> Decouple revision cleanup from the flush thread
> -----------------------------------------------
>
> Key: OAK-4138
> URL: https://issues.apache.org/jira/browse/OAK-4138
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segment-tar
> Reporter: Michael Dürig
> Assignee: Andrei Dulceanu
> Labels: resilience
> Fix For: Segment Tar 0.0.12
>
>
> I suggest we decouple revision cleanup from the flush thread. With large
> repositories where cleanup can take several minutes to complete it blocks the
> flush thread from updating the journal and the persisted head thus resulting
> in larger then necessary data loss in case of a crash.
> /cc [~alex.parvulescu]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)