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

Commit does not ensure w:majority

    XMLWordPrintableJSON

    Details

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: