You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2015/10/26 12:22:27 UTC

[jira] [Created] (OAK-3551) Failing version restore tests

Alex Parvulescu created OAK-3551:
------------------------------------

             Summary: Failing version restore tests
                 Key: OAK-3551
                 URL: https://issues.apache.org/jira/browse/OAK-3551
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: jcr
            Reporter: Alex Parvulescu
            Priority: Blocker


as mentioned on dl-dev

{code}
Tests in error: 
  testRestoreChild1(org.apache.jackrabbit.test.api.version.RestoreTest): org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022: /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory property jcr:versionHistory can not be removed
  testRestoreChild1Jcr2_2(org.apache.jackrabbit.test.api.version.RestoreTest): org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022: /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory property jcr:versionHistory can not be removed
  testRestoreChild1Jcr2_3(org.apache.jackrabbit.test.api.version.RestoreTest): org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022: /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory property jcr:versionHistory can not be removed
  testRestoreChild1Jcr2_4(org.apache.jackrabbit.test.api.version.RestoreTest): org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022: /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory property jcr:versionHistory can not be removed
  testRestoreChild1Jcr2(org.apache.jackrabbit.test.api.version.RestoreTest): org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022: /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory property jcr:versionHistory can not be removed
{code}

one stacktrace sample:
{code}
testRestoreChild1Jcr2(org.apache.jackrabbit.test.api.version.RestoreTest)  Time elapsed: 0.019 sec  <<< ERROR!
javax.jcr.RepositoryException: org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022: /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory property jcr:versionHistory can not be removed
	at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl$2.performVoid(VersionManagerImpl.java:204)
	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:273)
	at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl.restore(VersionManagerImpl.java:168)
	at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl.restore(VersionManagerImpl.java:149)
	at org.apache.jackrabbit.test.api.version.RestoreTest.testRestoreChild1Jcr2(RestoreTest.java:856)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:464)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022: /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory property jcr:versionHistory can not be removed
	at org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.constraintViolation(TypeEditor.java:149)
	at org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.propertyDeleted(TypeEditor.java:198)
	at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.propertyDeleted(VisibleEditor.java:85)
	at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.propertyDeleted(CompositeEditor.java:99)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.propertyDeleted(EditorDiff.java:104)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareProperties(SegmentNodeState.java:594)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:491)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:531)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
	at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
	at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)
	at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:54)
	at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)
	at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore$Commit.prepare(SegmentNodeStore.java:443)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore$Commit.optimisticMerge(SegmentNodeStore.java:474)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore$Commit.execute(SegmentNodeStore.java:530)
	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore.merge(SegmentNodeStore.java:208)
	at org.apache.jackrabbit.oak.core.MutableRoot.commit(MutableRoot.java:247)
	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:346)
	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:359)
	at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl$2.performVoid(VersionManagerImpl.java:201)
	... 34 more
{code}



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