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

Marcel Reutegger commented on OAK-4497:
---------------------------------------

Regarding the patch for trunk, the change in RDBDocumentStore may result in a 
NPE for {{tracker}} when the query is not on the NODES collection. At the same 
location, I think the {{else}} block must be guarded with 
{{NodeDocumentLocks}}. The test still fails when there is a one millisecond 
sleep between the check on the tracker and marking the document up to date.

> RDBDocumentStore: potential race condition between update and invalidate can 
> cause stale cache entries
> ------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-4497
>                 URL: https://issues.apache.org/jira/browse/OAK-4497
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: rdbmk
>    Affects Versions: 1.0.31, 1.4.3, 1.2.16, 1.5.4
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>              Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4
>             Fix For: 1.6, 1.0.32, 1.4.4, 1.2.17
>
>         Attachments: OAK-4497-1.4.diff, OAK-4497.diff
>
>
> The test in OAK-4489 shows that concurrency of queries and invalidations can 
> cause validations to be lost, leading to stale content in the cache.



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

Reply via email to