[ 
https://issues.apache.org/jira/browse/SUREFIRE-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495395#comment-17495395
 ] 

Tibor Digana commented on SUREFIRE-2019:
----------------------------------------

https://gitbox.apache.org/repos/asf?p=maven-surefire.git;a=commit;h=e7fe0ddda6211babe39f565da739db3a86c89264

> ThreadedStreamConsumer - use Thread.join() instead of CountDownLatch.await()
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-2019
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2019
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin, process 
> forking
>            Reporter: Tibor Digana
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 2.22.3, 3.0.0-M6
>
>
> Currently, {{ThreadedStreamConsumer}} uses {{CountDownLatch.await()}} which 
> is not 100% reliable. The thread may die if it is in the waiting state during 
> shutdown period. Let's use {{Thread.join()}} in the {{close()}}.
> Attention: do NOT use {{Thread.join()}} in the method {{handleEvent()}} - too 
> slow, and therefore we use {{AtomicBoolean}} as a treatment.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to