[
https://issues.apache.org/jira/browse/OAK-3329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Dürig updated OAK-3329:
-------------------------------
Attachment: OAK-3329-patched.png
OAK-3329-base.png
So far I haven't been able to come up with a systematic way to proof my patch
effective. However here is some anecdotal evidence:
!OAK-3329-base.png! shows the number of commits over time. At 15:55:43 cleanup
runs for 28 seconds. Commits stall completely during that time.
!OAK-3329-patched.png! shows the same situation running with the attached
patch. Cleanup runs at 17:06:10 for 38 seconds. Commits due not stall in this
case.
> TarMK cleanup blocks writers
> ----------------------------
>
> Key: OAK-3329
> URL: https://issues.apache.org/jira/browse/OAK-3329
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segmentmk
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Labels: cleanup, gc
> Fix For: 1.3.7
>
> Attachments: OAK-3329-base.png, OAK-3329-patched.png, OAK-3329.patch
>
>
> TarMK cleanup exclusively locks the {{FileStore}}, which causes concurrent
> writers to block until cleanup finished. Initially cleanup was expected to be
> reasonably fast, however I have seen it taking dozens of minutes under
> certain circumstances (most likely many tar files with many small segments,
> aka OAK-2896).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)