You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "joerghoh (via GitHub)" <gi...@apache.org> on 2023/12/21 10:58:01 UTC

[PR] JCRVLT-737 failing testcase [jackrabbit-filevault]

joerghoh opened a new pull request, #326:
URL: https://github.com/apache/jackrabbit-filevault/pull/326

   I was able to create the testcase, which shows exactly the same exception trace for JCRVLT-737. I am quite sure that it can be simplified further. The breakthrough happened when I added the custom nodetypes.
   
   ```
   [INFO] Running org.apache.jackrabbit.vault.packaging.integration.TestImportDuplicateUUIDs
   11:54:56.033 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - repository created: Apache Jackrabbit Oak 1.52.0
   11:54:56.623 [main] INFO  o.a.j.v.p.i.TestImportDuplicateUUIDs - importing
   11:54:56.626 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - Collecting import information...
   11:54:56.628 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - Installing node types...
   11:54:56.635 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - jcr -> http://www.jcp.org/jcr/1.0
   11:54:56.635 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - dam -> http://www.day.com/day/dam
   11:54:56.635 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - nt -> http://www.jcp.org/jcr/nt/1.0
   11:54:56.635 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - dam:Asset
   11:54:56.636 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - dam:AssetContent
   11:54:56.636 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - Installing privileges...
   11:54:56.636 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - Importing content...
   11:54:56.651 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - /
   11:54:56.656 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - /testroot
   11:54:56.662 [main] WARN  o.a.j.v.fs.impl.io.DocViewImporter - Node Collision: To-be imported node /testroot/tPS1iCUDVj.png uses a node identifier Optional[bf2330cb-a763-40a9-9d29-3c336d917bd0] which is already taken by /testroot/tPS1iCUDVj.png-renamed, trying to resolve conflict according to policy LEGACY
   11:54:56.662 [main] WARN  o.a.j.v.fs.impl.io.DocViewImporter - Existing conflicting node /testroot/tPS1iCUDVj.png-renamed has same parent as to-be imported one and is not contained in the filter, ignoring new node but continue with children below existing conflicting node
   11:54:56.664 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - - /testroot/tPS1iCUDVj.png-renamed
   11:54:56.665 [main] ERROR o.a.jackrabbit.vault.fs.io.Importer - E /testroot/tPS1iCUDVj.png/binary.png (java.lang.IllegalStateException: Parent node not found.)
   11:54:56.665 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - E /testroot/tPS1iCUDVj.png/binary.png java.lang.IllegalStateException: Parent node not found.
   11:54:56.665 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - saving approx 1 nodes...
   11:54:56.713 [main] INFO  o.a.j.v.p.i.IntegrationTestBase - Package imported (with errors, check logs!)
   [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.377 s <<< FAILURE! -- in org.apache.jackrabbit.vault.packaging.integration.TestImportDuplicateUUIDs
   [ERROR] org.apache.jackrabbit.vault.packaging.integration.TestImportDuplicateUUIDs.testInstallPackage -- Time elapsed: 0.685 s <<< ERROR!
   javax.jcr.RepositoryException: Some errors occurred while installing packages. Please check the logs for details. First exception is logged as cause.
   	at org.apache.jackrabbit.vault.fs.io.Importer.run(Importer.java:579)
   	at org.apache.jackrabbit.vault.fs.io.Importer.run(Importer.java:409)
   	at org.apache.jackrabbit.vault.packaging.integration.TestImportDuplicateUUIDs.installContentPackage(TestImportDuplicateUUIDs.java:183)
   	at org.apache.jackrabbit.vault.packaging.integration.TestImportDuplicateUUIDs.testInstallPackage(TestImportDuplicateUUIDs.java:121)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
   	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
   	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
   	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
   	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
   	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
   	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
   	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
   	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54)
   	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
   	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
   	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
   	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
   	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
   	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
   	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
   Caused by: org.apache.jackrabbit.vault.packaging.PackageException: Error creating/updating node /testroot/tPS1iCUDVj.png/binary.png
   	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1177)
   	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:976)
   	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018)
   	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018)
   	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018)
   	at org.apache.jackrabbit.vault.fs.io.Importer.run(Importer.java:531)
   	... 37 more
   Caused by: java.lang.IllegalStateException: Parent node not found.
   	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1125)
   	... 42 more
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] JCRVLT-737 failing testcase [jackrabbit-filevault]

Posted by "kwin (via GitHub)" <gi...@apache.org>.
kwin closed pull request #326: JCRVLT-737 failing testcase
URL: https://github.com/apache/jackrabbit-filevault/pull/326


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] JCRVLT-737 failing testcase [jackrabbit-filevault]

Posted by "prestoncrawford (via GitHub)" <gi...@apache.org>.
prestoncrawford commented on PR #326:
URL: https://github.com/apache/jackrabbit-filevault/pull/326#issuecomment-1889899936

   @joerghoh - We're seeing this "Parent node not found" error in our AEMaaCS instances periodically while replicating assets. The only common denominator that I can determine so far is that the assets that fail this way have a custom nodeType that doesn't exist on the Publish instance. 
   
   In our case we have assets that have a `jcr:mixinType` of "cq:ReplicationStatus2". When I try to recreate this error in a local environment using a local Author and Publish environment generated using AEMaaCS jars the error presents itself like this. 
   
   "2024-01-12 11:34:11 - ERROR - publish : << error: com.day.cq.replication.ReplicationException: Repository error during node import: Node type cq:ReplicationStatus2 is not a mixin type"
   
   We've been banging our heads against the wall. Am I reading correctly that you've identified the cause of the "parent node not found" to be the existence of custom nodeTypes? Does our error sound similar to this? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] JCRVLT-737 failing testcase [jackrabbit-filevault]

Posted by "tmaret (via GitHub)" <gi...@apache.org>.
tmaret commented on PR #326:
URL: https://github.com/apache/jackrabbit-filevault/pull/326#issuecomment-1866083824

   Nice ! @joerghoh could you include the `/Users/joerg/Day/customers/deloitte/2023-12-20/test` package in the PR or generate a package in the test ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] JCRVLT-737 failing testcase [jackrabbit-filevault]

Posted by "reschke (via GitHub)" <gi...@apache.org>.
reschke commented on PR #326:
URL: https://github.com/apache/jackrabbit-filevault/pull/326#issuecomment-1889928464

   I have simplified the test to use standard node types: https://github.com/apache/jackrabbit-filevault/pull/328
   
   So far the theory is that the system works as per documentation, and that it's really a case where a node is replicated that has been moved/renamed on the target system.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] JCRVLT-737 failing testcase [jackrabbit-filevault]

Posted by "kwin (via GitHub)" <gi...@apache.org>.
kwin commented on PR #326:
URL: https://github.com/apache/jackrabbit-filevault/pull/326#issuecomment-2085431923

   Superseded by #328.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] JCRVLT-737 failing testcase [jackrabbit-filevault]

Posted by "joerghoh (via GitHub)" <gi...@apache.org>.
joerghoh commented on PR #326:
URL: https://github.com/apache/jackrabbit-filevault/pull/326#issuecomment-1866096569

   I duplicated this failing test and tried with a different ConflictPolicy (CREATE_NEW_ID) and that one works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org