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

Commit does not ensure w:majority

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 1.2
    • 1.3.14, 1.4
    • core, mongomk

    Description

      The MongoDocumentStore uses findAndModify() to commit a transaction. This operation does not allow an application specified write concern and always uses the MongoDB default write concern Acknowledged. This means a commit may not make it to a majority of a replica set when the primary fails. From a MongoDocumentStore perspective it may appear as if a write was successful and later reverted. See also the test in OAK-1641.

      To fix this, we'd probably have to change the MongoDocumentStore to avoid findAndModify() and use update() instead.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: