Michael Dürig created OAK-693:
---------------------------------

             Summary: AbstractTypeDefinition hold onto Tree instance with can 
become invalid later on
                 Key: OAK-693
                 URL: https://issues.apache.org/jira/browse/OAK-693
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
            Reporter: Michael Dürig


Enforcing the Tree contract in OAK-690 causes the following tests to fail with 
java.lang.IllegalStateException: This node has been removed or is disconnected 
(run with -DOAK-690=true to see these failures):

{code}
      org.apache.jackrabbit.test.api.AddNodeTest#testAbstractNodeType
      
org.apache.jackrabbit.test.api.SetPropertyConstraintViolationExceptionTest#testBinaryProperty
      
org.apache.jackrabbit.test.api.SetPropertyConstraintViolationExceptionTest#testBooleanProperty
      
org.apache.jackrabbit.test.api.SetPropertyConstraintViolationExceptionTest#testDateProperty
      
org.apache.jackrabbit.test.api.SetPropertyConstraintViolationExceptionTest#testDoubleProperty
      
org.apache.jackrabbit.test.api.SetPropertyConstraintViolationExceptionTest#testLongProperty
      
org.apache.jackrabbit.test.api.NodeSetPrimaryTypeTest#testSetMixinAsPrimaryType
      
org.apache.jackrabbit.test.api.NodeSetPrimaryTypeTest#testSetAbstractAsPrimaryType
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_handler_session_skipBinary_noRecurse
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_handler_session_skipBinary_recurse
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_handler_session_saveBinary_noRecurse
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_handler_session_saveBinary_recurse
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_stream_session_skipBinary_recurse
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_stream_session_skipBinary_noRecurse
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_stream_session_saveBinary_noRecurse
      
org.apache.jackrabbit.test.api.SerializationTest#testExportSysView_stream_session_saveBinary_recurse
      org.apache.jackrabbit.test.api.SerializationTest#testSessionImportXml
      
org.apache.jackrabbit.test.api.SerializationTest#testSessionGetImportContentHandlerExceptions
      
org.apache.jackrabbit.test.api.SerializationTest#testSessionImportXmlExceptions
      
org.apache.jackrabbit.test.api.SerializationTest#testOverwriteExceptionSessionWithHandler
      
org.apache.jackrabbit.test.api.SerializationTest#testOverwriteExceptionSession
      
org.apache.jackrabbit.test.api.SerializationTest#testNodeTypeConstraintViolationSessionWithHandler
      
org.apache.jackrabbit.test.api.SerializationTest#testNodeTypeConstraintViolationSession
      
org.apache.jackrabbit.test.api.SerializationTest#testSessionGetContentHandler
{code}

All of these are caused by 
{{org.apache.jackrabbit.oak.plugins.nodetype.AbstractTypeDefinition}} holding 
onto a {{Tree}} instance which becomes invalid after a subsequent save call.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to