jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Updated] (OAK-3329) TarMK cleanup blocks writers
Date Tue, 22 Sep 2015 12:32:04 GMT

     [ 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.patch

Proposed patch: [^OAK-3329.patch].

This patch takes the cleanup of the individual readers outside of the lock allowing for concurrent
writes during that time. All tests pass. Tests regarding impact on concurrent writers are
pending. 

[~alex.parvulescu], please have a look.

> 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.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)

Mime
View raw message