[ 
https://issues.apache.org/jira/browse/OAK-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15669976#comment-15669976
 ] 

Marcel Reutegger commented on OAK-3985:
---------------------------------------

The finally block surrounding {{dbCollection.remove()}} should invalidate the 
cache even when {{num}} is zero. When the call fails with an exception some 
documents may still have been removed. MongoDB does not guarantee atomicity 
over multiple documents.

> MongoDocumentStore: implement new conditional remove method
> -----------------------------------------------------------
>
>                 Key: OAK-3985
>                 URL: https://issues.apache.org/jira/browse/OAK-3985
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: mongomk
>            Reporter: Julian Reschke
>            Assignee: Vikas Saurabh
>             Fix For: 1.6, 1.5.14
>
>
> As introduced in OAK-3982.



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

Reply via email to