You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2011/02/28 14:48:22 UTC

[jira] Issue Comment Edited: (SUREFIRE-690) testSetCompleted called before testSetStarting when using m3 parallel builds

    [ http://jira.codehaus.org/browse/SUREFIRE-690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257966#action_257966 ] 

Kristian Rosenvold edited comment on SUREFIRE-690 at 2/28/11 7:48 AM:
----------------------------------------------------------------------

Are you setting the "forkTimeout" parameter in your surefire settings ? We have identified a race condition that could occur if the forked process times out while still outputting to stdout/stderr. Just setting "forkTimeout" is actually enough to trigger 
this, it would happen even with "forkMode=never" as long as forkTimeout is set.

Actually the issue would probably happen quite frequently as long as the process outputs to stderr/stdout at the exact time it times out with "forkTimeout". 


      was (Author: krosenvold):
    Are you setting the "forkTimeout" parameter in your surefire settings ? We have identified a (rare) race condition that could occur if the forked process times out while still outputting to stdout/stderr. Just setting "forkTimeout" is actually enough to trigger this, it would happen even with "forkMode=never" as long as forkTimeout is set.


  
> testSetCompleted called before testSetStarting when using m3 parallel builds
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-690
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-690
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support
>    Affects Versions: 2.7.1
>            Reporter: Gin-Ting Chen
>            Assignee: Kristian Rosenvold
>             Fix For: 2.7.3
>
>
> This is running m3 with -T 1C (8 core build machine).
> [17:52:38]: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project hornet-stinger: Error while executing forked tests.; nested exception is java.lang.IllegalStateException: testSetCompleted called before testSetStarting -> [Help 1]
> Seems like it doesn't happen as frequently as previously

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira