[ https://issues.apache.org/jira/browse/MNG-6720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16895891#comment-16895891 ]
Michael Osipov edited comment on MNG-6720 at 7/30/19 8:23 AM: -------------------------------------------------------------- Fixed with [0515cb1f0e258e1c22186a4e2dbdffa8db850b57|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=0515cb1f0e258e1c22186a4e2dbdffa8db850b57] and [3ccccc4cc3e4c7276496118e775dc68e631a3081|https://gitbox.apache.org/repos/asf?p=maven-integration-testing.git;a=commit;h=3ccccc4cc3e4c7276496118e775dc68e631a3081]. was (Author: michael-o): Fixed with [0515cb1f0e258e1c22186a4e2dbdffa8db850b57|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=0515cb1f0e258e1c22186a4e2dbdffa8db850b57]. > MultiThreadedBuilder: wait for parallel running projects when using > --fail-fast > ------------------------------------------------------------------------------- > > Key: MNG-6720 > URL: https://issues.apache.org/jira/browse/MNG-6720 > Project: Maven > Issue Type: Bug > Components: core > Affects Versions: 3.5.4, 3.6.1 > Reporter: Stefan Oehme > Assignee: Michael Osipov > Priority: Major > Fix For: 3.6.2 > > Time Spent: 20m > Remaining Estimate: 0h > > When a project fails using --fail-fast mode, other projects that are > currently running in parallel are not finished before the "session finished" > event is sent. This leads to issues for extensions that rely on the > documented order of events, which says that "session finished" is only sent > "after all projects have been finished/skipped". > In our case, we close a service on "session finished", and that service is > needed to execute goals. The goals that were running in parallel at that time > then fail, saying that our service was closed, giving our users the > impression that there is a bug in our code. > The relevant line is > [here|https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java#L179]. > Instead of using `poll`, which simply returns when the parallel projects > aren't finished yet, the code should shut down the executor and wait for it > to complete the outstanding parallel work. -- This message was sent by Atlassian JIRA (v7.6.14#76016)