Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2127

Long running merge may block other commits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0.7, 1.1.0
    • core, mongomk
    • None

    Description

      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.

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: