Tomek Rękawek created OAK-6376:
----------------------------------

             Summary: Race condition in the CompositeNodeStore#merge
                 Key: OAK-6376
                 URL: https://issues.apache.org/jira/browse/OAK-6376
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: composite
            Reporter: Tomek Rękawek
             Fix For: 1.8


Following line in the CompositeNodeStore#merge() is prone for race condition:

{code}
NodeState processed = commitHook.processCommit(getRoot(), rebase(nodeBuilder), 
info);
{code}

We should compare the rebase() results with the getRoot() method, but with the 
nodeBuilder.getBaseState(). Otherwise, any changes in the root between 
getRoot() and rebase() invocations will lead to processing external changes in 
the commit hook.



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

Reply via email to