Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0, 1.2
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.