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

Julian Reschke commented on OAK-1488:
-------------------------------------

The underlying exceptions appear to be;

{code}
javax.jcr.RepositoryException: OakMerge0001: OakMerge0001: Failed to merge 
changes to the underlying store (retries 4, 4232 ms)
        at 
org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:247)
        at 
org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:212)
        at 
org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:617)
        at 
org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:502)
        at 
org.apache.jackrabbit.oak.jcr.session.SessionImpl$8.perform(SessionImpl.java:414)
        at 
org.apache.jackrabbit.oak.jcr.session.SessionImpl$8.perform(SessionImpl.java:1)
        at 
org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:263)
        at 
org.apache.jackrabbit.oak.jcr.session.SessionImpl.perform(SessionImpl.java:124)
        at 
org.apache.jackrabbit.oak.jcr.session.SessionImpl.save(SessionImpl.java:411)
        at 
org.apache.jackrabbit.oak.jcr.ConcurrentAddRemoveIT$Worker.run(ConcurrentAddRemoveIT.java:95)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakMerge0001: 
OakMerge0001: Failed to merge changes to the underlying store (retries 4, 4232 
ms)
        at 
org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch.merge(AbstractNodeStoreBranch.java:304)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge(DocumentNodeStoreBranch.java:143)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.merge(DocumentRootBuilder.java:147)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1211)
        at 
org.apache.jackrabbit.oak.core.MutableRoot.commit(MutableRoot.java:242)
        at 
org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:357)
        at 
org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:500)
        ... 7 more
Caused by: org.apache.jackrabbit.mk.api.MicroKernelException: The node 
2:/test/child does not exist or is already deleted, before
r144bc205b2e-0-1; document:
{_lastRev={r0-0-1=r144bc1e35e6-0-1},
_id=2:/test/child, :childOrder={r144bc1e5610-6-1=null, r144bc1e3645-0-1=null, 
r144bc1e35e6-0-1="[0]:Name", r144bc1e35df-0-1=null, 
r144bc1e35d7-0-1="[0]:Name", r144bc1e35d1-0-1=null, 
r144bc1e35cb-0-1="[0]:Name", r144bc1e35c5-0-1=null, 
r144bc1e35be-1-1="[0]:Name", r144bc1e35b3-0-1=null, r144bc1e35af-0-1=null, 
r144bc1e35a8-0-1="[0]:Name", r144bc1e3572-0-1=null, 
r144bc1e356d-0-1="[0]:Name", r144bc1e3568-0-1=null, 
r144bc1e3563-0-1="[0]:Name", r144bc1e355e-0-1=null, 
r144bc1e3559-0-1="[0]:Name", r144bc1e3555-0-1=null, 
r144bc1e3550-0-1="[0]:Name", r144bc1e354b-0-1=null, 
r144bc1e3547-0-1="[0]:Name", r144bc1e3543-0-1=null, 
r144bc1e353e-0-1="[0]:Name", r144bc1e353a-0-1=null, 
r144bc1e3535-0-1="[0]:Name", r144bc1e3530-0-1=null, 
r144bc1e352b-0-1="[0]:Name", r144bc1e3526-0-1=null, 
r144bc1e3520-0-1="[0]:Name", r144bc1e3517-0-1=null, 
r144bc1e3510-0-1="[0]:Name", r144bc1e350b-0-1=null, 
r144bc1e3505-0-1="[0]:Name", r144bc1e34f7-0-1=null, 
r144bc1e34f2-0-1="[0]:Name", r144bc1e34ec-0-1=null, 
r144bc1e3492-5-1="[0]:Name", r144bc1e3488-0-1="[0]:Name", 
r144bc1e347e-6-1="[0]:Name", r144bc1e347e-4-1="[0]:Name", 
r144bc1e347e-0-1="[0]:Name"},
_modified=278945127,
_modCount=609,
_commitRoot={r144bc1e5610-6-1=0, r144bc1e3645-0-1=0, r144bc1e35e6-0-1=0, 
r144bc1e35df-0-1=0, r144bc1e35d7-0-1=0, r144bc1e35d1-0-1=0, r144bc1e35cb-0-1=0, 
r144bc1e35c5-0-1=0, r144bc1e35be-1-1=0, r144bc1e35b3-0-1=0, r144bc1e35af-0-1=0, 
r144bc1e35a8-0-1=0, r144bc1e3572-0-1=0, r144bc1e356d-0-1=0, r144bc1e3568-0-1=0, 
r144bc1e3563-0-1=0, r144bc1e355e-0-1=0, r144bc1e3559-0-1=0, r144bc1e3555-0-1=0, 
r144bc1e3550-0-1=0, r144bc1e354b-0-1=0, r144bc1e3547-0-1=0, r144bc1e3543-0-1=0, 
r144bc1e353e-0-1=0, r144bc1e353a-0-1=0, r144bc1e3535-0-1=0, r144bc1e3530-0-1=0, 
r144bc1e352b-0-1=0, r144bc1e3526-0-1=0, r144bc1e3520-0-1=0, r144bc1e3517-0-1=0, 
r144bc1e3510-0-1=0, r144bc1e350b-0-1=0, r144bc1e3505-0-1=0, r144bc1e34f7-0-1=0, 
r144bc1e34f2-0-1=0, r144bc1e34ec-0-1=0, r144bc1e3492-5-1=0, r144bc1e3488-0-1=0, 
r144bc1e347e-6-1=0, r144bc1e347e-4-1=0, r144bc1e347e-0-1=0},
_deleted={r144bc1e5610-6-1=true, r144bc1e3645-0-1=true, r144bc1e35e6-0-1=false, 
r144bc1e35df-0-1=true, r144bc1e35d7-0-1=false, r144bc1e35d1-0-1=true, 
r144bc1e35cb-0-1=false, r144bc1e35c5-0-1=true, r144bc1e35be-1-1=false, 
r144bc1e35b3-0-1=true, r144bc1e35af-0-1=true, r144bc1e35a8-0-1=false, 
r144bc1e3572-0-1=true, r144bc1e356d-0-1=false, r144bc1e3568-0-1=true, 
r144bc1e3563-0-1=false, r144bc1e355e-0-1=true, r144bc1e3559-0-1=false, 
r144bc1e3555-0-1=true, r144bc1e3550-0-1=false, r144bc1e354b-0-1=true, 
r144bc1e3547-0-1=false, r144bc1e3543-0-1=true, r144bc1e353e-0-1=false, 
r144bc1e353a-0-1=true, r144bc1e3535-0-1=false, r144bc1e3530-0-1=true, 
r144bc1e352b-0-1=false, r144bc1e3526-0-1=true, r144bc1e3520-0-1=false, 
r144bc1e3517-0-1=true, r144bc1e3510-0-1=false, r144bc1e350b-0-1=true, 
r144bc1e3505-0-1=false, r144bc1e34f7-0-1=true, r144bc1e34f2-0-1=false, 
r144bc1e34ec-0-1=true, r144bc1e3492-5-1=false, r144bc1e3488-0-1=false, 
r144bc1e347e-6-1=false, r144bc1e347e-4-1=false, r144bc1e347e-0-1=false},
jcr:primaryType={r144bc1e5610-6-1=null, r144bc1e3645-0-1=null, 
r144bc1e35e6-0-1="nam:nt:unstructured", r144bc1e35df-0-1=null, 
r144bc1e35d7-0-1="nam:nt:unstructured", r144bc1e35d1-0-1=null, 
r144bc1e35cb-0-1="nam:nt:unstructured", r144bc1e35c5-0-1=null, 
r144bc1e35be-1-1="nam:nt:unstructured", r144bc1e35b3-0-1=null, 
r144bc1e35af-0-1=null, r144bc1e35a8-0-1="nam:nt:unstructured", 
r144bc1e3572-0-1=null, r144bc1e356d-0-1="nam:nt:unstructured", 
r144bc1e3568-0-1=null, r144bc1e3563-0-1="nam:nt:unstructured", 
r144bc1e355e-0-1=null, r144bc1e3559-0-1="nam:nt:unstructured", 
r144bc1e3555-0-1=null, r144bc1e3550-0-1="nam:nt:unstructured", 
r144bc1e354b-0-1=null, r144bc1e3547-0-1="nam:nt:unstructured", 
r144bc1e3543-0-1=null, r144bc1e353e-0-1="nam:nt:unstructured", 
r144bc1e353a-0-1=null, r144bc1e3535-0-1="nam:nt:unstructured", 
r144bc1e3530-0-1=null, r144bc1e352b-0-1="nam:nt:unstructured", 
r144bc1e3526-0-1=null, r144bc1e3520-0-1="nam:nt:unstructured", 
r144bc1e3517-0-1=null, r144bc1e3510-0-1="nam:nt:unstructured", 
r144bc1e350b-0-1=null, r144bc1e3505-0-1="nam:nt:unstructured", 
r144bc1e34f7-0-1=null, r144bc1e34f2-0-1="nam:nt:unstructured", 
r144bc1e34ec-0-1=null, r144bc1e3492-5-1="nam:nt:unstructured", 
r144bc1e3488-0-1="nam:nt:unstructured", r144bc1e347e-6-1="nam:nt:unstructured", 
r144bc1e347e-4-1="nam:nt:unstructured", 
r144bc1e347e-0-1="nam:nt:unstructured"}},
revision order:
1:
 r144bc1e2d26-0-1:r144bc1e2d3a-0-0

        at 
org.apache.jackrabbit.oak.plugins.document.Commit.checkConflicts(Commit.java:500)
        at 
org.apache.jackrabbit.oak.plugins.document.Commit.createOrUpdateNode(Commit.java:418)
        at 
org.apache.jackrabbit.oak.plugins.document.Commit.applyToDocumentStore(Commit.java:303)
        at 
org.apache.jackrabbit.oak.plugins.document.Commit.applyToDocumentStore(Commit.java:203)
        at 
org.apache.jackrabbit.oak.plugins.document.Commit.applyInternal(Commit.java:188)
        at 
org.apache.jackrabbit.oak.plugins.document.Commit.apply(Commit.java:177)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:172)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:85)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:36)
        at 
org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch$InMemory.merge(AbstractNodeStoreBranch.java:487)
        at 
org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch.merge(AbstractNodeStoreBranch.java:288)
        ... 13 more
{code}

Right now I don't understand exactly how the MK and the persistence interact, 
and what the persistence's problem might be. Putting on hold until I have free 
cycles.

> ConcurrentAddRemoveIT, ConcurrentAddIT test failures
> ----------------------------------------------------
>
>                 Key: OAK-1488
>                 URL: https://issues.apache.org/jira/browse/OAK-1488
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>         Environment: http://ci.apache.org/builders/oak-trunk
>            Reporter: Michael Dürig
>            Assignee: Julian Reschke
>             Fix For: 0.19
>
>
> I quite regularly see this failing now:
> {noformat}
> concurrent[4](org.apache.jackrabbit.oak.jcr.ConcurrentAddRemoveIT)  Time 
> elapsed: 58.018 sec  <<< FAILURE!
> java.lang.AssertionError: javax.jcr.RepositoryException: OakMerge0001: 
> OakMerge0001: Failed to merge changes to the underlying store (retries 4, 
> 4689 ms)
>       at org.junit.Assert.fail(Assert.java:93)
>       at 
> org.apache.jackrabbit.oak.jcr.ConcurrentAddRemoveIT.concurrent(ConcurrentAddRemoveIT.java:64)
> {noformat}
> Fixture 4 is {{DOCUMENT_JDBC}}. Not sure whether it also fails for other 
> fixtures. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to