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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/05/30 16:17:20 UTC

[jira] [Resolved] (OAK-840) Intermittent test failure for testRegisterNodeType on JDK 7

     [ https://issues.apache.org/jira/browse/OAK-840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved OAK-840.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9
         Assignee: Jukka Zitting

Fixed in http://svn.apache.org/r1487869.

The problem was the test setup that didn't clean up previously registered node types. Thus, depending on the ordering of test execution, sometimes the node type that the test case was trying to create already existed, throwing off the assumptions of the test.

Since fixing the test setup would have been a bit complicated, I simply adjusted each test case to use different node type names to prevent such conflicts.
                
> Intermittent test failure for testRegisterNodeType on JDK 7
> -----------------------------------------------------------
>
>                 Key: OAK-840
>                 URL: https://issues.apache.org/jira/browse/OAK-840
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>         Environment: JDK 7
>            Reporter: Michael Dürig
>            Assignee: Jukka Zitting
>             Fix For: 0.9
>
>
> {{NodeTypeDefinitionManagementTest#testRegisterNodeType}} intermittently fails on JDK 7. See https://travis-ci.org/apache/jackrabbit-oak/builds/7423558

--
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