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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2014/09/24 17:21:33 UTC

[jira] [Resolved] (OAK-2127) Long running merge may block other commits

     [ https://issues.apache.org/jira/browse/OAK-2127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger resolved OAK-2127.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1

Relaxed merge locking with an upper time limit to acquire the lock for the DocumentNodeStore in http://svn.apache.org/r1627346

> Long running merge may block other commits
> ------------------------------------------
>
>                 Key: OAK-2127
>                 URL: https://issues.apache.org/jira/browse/OAK-2127
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, mongomk
>    Affects Versions: 1.0
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>             Fix For: 1.1
>
>
> A long running merge with DocumentNodeStore may block other commits when there are merge conflicts and a merge is retried.
> The DocumentNodeStore currently acquires a shared lock when it performs a merge. This allows concurrent merges. A merge is retried if it fails with a conflict and at some point will acquire above mentioned lock exclusively. This way, merges are serialized and an attempt is made to prevent conflicts introduced by concurrent merges.
> The lock becomes problematic when a long running merge hold this lock exclusively. All other commits are then basically blocked.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)