You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mohsen Hariri (JIRA)" <ji...@apache.org> on 2019/07/08 14:21:00 UTC
[jira] [Commented] (SUREFIRE-1675) Forked JVM terminates with
'halt' when another module's tests fail
[ https://issues.apache.org/jira/browse/SUREFIRE-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16880400#comment-16880400 ]
Mohsen Hariri commented on SUREFIRE-1675:
-----------------------------------------
When a module's tests fail, the maven parent process exits without waiting for the all modules that are running in parallel to run through their ['acknowledgedExit'|https://github.com/apache/maven-surefire/blob/master/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java#L296] procedure, so the forked processes hang after building the current test until they are killed by a `halt` call in the [`kill`|https://github.com/apache/maven-surefire/blob/master/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java#L350] method.
> Forked JVM terminates with 'halt' when another module's tests fail
> ------------------------------------------------------------------
>
> Key: SUREFIRE-1675
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1675
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.22.2, 3.0.0-M2
> Reporter: Mohsen Hariri
> Priority: Major
> Attachments: badshutdown.zip
>
>
> h3. Steps to reproduce:
> Run the attached project with the following command:
> {noformat}
> mvn test -T2{noformat}
> h3. Expected outcome:
> The 'long' modules's test's shutdown hook should be called
>
> h3. Actual outcome:
> The 'long' modules test's shutdown hook is never called
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)