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

Marcel Reutegger commented on OAK-7101:
---------------------------------------

Diagram was created with sequencediagram.org and the following definition:
{noformat}
Query->QueryContext:create
Query->DB:query
Query->Cache:getIfPresent
Update->Cache:readDocumentCached
opt when document was in cache and considered fresh
Query->Query:L(a)
Query->QueryContext:mayUpdate
Query->Cache:markUpToDate(inCache)
Query->Query:L(r)
end
Update->Update:L(a)
Update->DB:update
Query->QueryContext:mayUpdate
Update->QueryContext:addKey
Update->Cache:replaceCachedDocument
Query->Cache:putIfNewer(fresh)
Update->Update:L(r)
Query->QueryContext:destroy
{noformat}

> Stale documents in RDBDocumentStore cache
> -----------------------------------------
>
>                 Key: OAK-7101
>                 URL: https://issues.apache.org/jira/browse/OAK-7101
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: rdbmk
>    Affects Versions: 1.0, 1.4.0, 1.6.0, 1.2.0
>            Reporter: Marcel Reutegger
>            Assignee: Julian Reschke
>             Fix For: 1.0.40, 1.4.19, 1.6.8, 1.8, 1.2.28, 1.7.15
>
>         Attachments: OAK-7101.patch, oak-7101.png, query-lock.diff
>
>
> Concurrent query and update operations on RDBDocumentStore may result in 
> stale entries in the document cache.
> Potentially related issues are OAK-5387 and OAK-6062.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to