[ 
https://issues.apache.org/jira/browse/OAK-12309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Manfred Baedke updated OAK-12309:
---------------------------------
    Description: This is the root cause of the flaky test OAK-11600. The 
activate() method as well as several bind calls touch some non-volatile fields. 
Thus it may happen that a bind call falsely assumes that the component is not 
activated yet (OAK-11600 is one example). And even if all relevant fields are 
made volatile, it still can occur that concurrent threads see all conditions 
for NodeStore registration fulfilled simultaneously, leading to a double 
registration.

> DocumentNodeStoreService may fail to register or double register the 
> NodeStore due to race conditions
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OAK-12309
>                 URL: https://issues.apache.org/jira/browse/OAK-12309
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: documentmk
>            Reporter: Manfred Baedke
>            Assignee: Manfred Baedke
>            Priority: Major
>
> This is the root cause of the flaky test OAK-11600. The activate() method as 
> well as several bind calls touch some non-volatile fields. Thus it may happen 
> that a bind call falsely assumes that the component is not activated yet 
> (OAK-11600 is one example). And even if all relevant fields are made 
> volatile, it still can occur that concurrent threads see all conditions for 
> NodeStore registration fulfilled simultaneously, leading to a double 
> registration.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to