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 2015/03/09 10:38:38 UTC

[jira] [Created] (OAK-2592) Commit does not ensure w:majority

Marcel Reutegger created OAK-2592:
-------------------------------------

             Summary: Commit does not ensure w:majority
                 Key: OAK-2592
                 URL: https://issues.apache.org/jira/browse/OAK-2592
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core, mongomk
            Reporter: Marcel Reutegger
            Assignee: Marcel Reutegger
             Fix For: 1.4


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.



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