You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2018/04/05 05:08:00 UTC

[jira] [Commented] (SUREFIRE-1430) Parallel parameterized JUnit test hangs on Linux

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

Tibor Digana commented on SUREFIRE-1430:
----------------------------------------

[~christian.beikov]
After investigating this issue I found out that it is not related to Linux. It was reproduced on Linux only because the number of virtual CPU is 1. So I turned the configuration from
{code:xml}
<threadCount>1</threadCount>
<perCoreThreadCount>true</perCoreThreadCount>
{code}
to
{code:xml}
<threadCount>3</threadCount>
<perCoreThreadCount>false</perCoreThreadCount>
{code}
which caused hanging the plugin finally on both Linux and Windows.
If you set {{threadCount}} to 4 all tests pass on both platforms.
It means that we have a bug in parallel computer or dissipation of threads to suites/classes/methods.
I will develop a unit test and isolate the problem only to ParallelComputerBuilder.

> Parallel parameterized JUnit test hangs on Linux
> ------------------------------------------------
>
>                 Key: SUREFIRE-1430
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1430
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support
>    Affects Versions: 2.18, 2.18.1, 2.19, 2.19.1, 2.20, 2.20.1
>         Environment: Linux/Ubuntu
>            Reporter: Christian Beikov
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.0.0-M1
>
>
> This is a follow up of SUREFIRE-1264. The test case is here: https://github.com/beikov/surefire-test
> The problem is, that a simple parameterized JUnit test hangs when running in parallel mode on Linux.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)