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

Chetan Mehrotra commented on OAK-4535:
--------------------------------------

Based on Mongo docs queries #1 , #3 and #4 should be fine as they are based on 
indexes which are based on immutable properties i.e. property value do not get 
changed. So those document entries in index would not get changed when queries 
are executing

For #5 and #2 the _modified value can change and this can result in document 
entry changed in index. Based on our understanding so far it can potentially 
result in same document getting reported more than once. However it should not 
result in document not getting reported as part query as _modified can only 
increase and in no case it would decrease

Per discussion with [~mreutegg] this should be fine for now as diffImpl logic 
constructs a set out of the result which would take care of duplicate ids 
getting reported by MongoDocumentStore

Going forward we may want to clarify the contract for DocumentStore and ensure 
that result returned by it does not contain duplicates

> Analyze impact of Mongo isolation guarantees and Query result
> -------------------------------------------------------------
>
>                 Key: OAK-4535
>                 URL: https://issues.apache.org/jira/browse/OAK-4535
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: mongomk
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.6
>
>
> As per [Mongo Isolation guarantees 
> |https://docs.mongodb.com/manual/faq/concurrency/#what-isolation-guarantees-does-mongodb-provide]
> {quote}
> Reads may miss matching documents that are updated during the course of the 
> read operation.
> {quote}
> This can result in some scenarios where query performed might miss out on 
> some documents if that document gets modified while query is being execute.
> Aim of this task is to analyze the kind of queries current Oak uses with 
> Mongo and see if current support from Mongo is sufficient for our needs



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

Reply via email to