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

Marcel Reutegger resolved OAK-2592.
-----------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 1.4)
                   1.3.14

Updated MongoDB Java Driver to 2.14.0. This version supports MongoDB 3.2 and 
sends the write concern for findAndModify if the server is 3.2 or higher.

This means the fix for this issue also requires running on MongoDB 3.2 or 
higher.

Done in trunk: http://svn.apache.org/r1723502

> 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
>              Labels: resilience
>             Fix For: 1.3.14
>
>
> 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)

Reply via email to