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

Marcel Reutegger commented on OAK-3566:
---------------------------------------

There is still a race condition when a query and an update happen at the same 
time. Consider the following sequence:

- Query calls internalQuery() which contains document D
- Update calls dbBatchedAppending() and modifies document D -> D'
- Query calls runThroughCache() and may update D
- Update adds key of D to QueryContext of the query (too late)
- Update invalidates cache for D
- Query puts D into the cache

> Stale documents in RDBDocumentStore cache
> -----------------------------------------
>
>                 Key: OAK-3566
>                 URL: https://issues.apache.org/jira/browse/OAK-3566
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, rdbmk
>    Affects Versions: 1.0, 1.2
>            Reporter: Marcel Reutegger
>            Assignee: Julian Reschke
>             Fix For: 1.3.11
>
>         Attachments: OAK-3566-test.patch, OAK-3566.diff, OAK-3566.patch
>
>
> This issue is about the same problem as described in OAK-1897 but for the 
> RDBDocumentStore implementation.



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

Reply via email to