Guten Tag Thorsten Schöning,
am Donnerstag, 3. Oktober 2019 um 10:44 schrieben Sie:

> How long does this test run for you?

I made some additional tests and was easily able to trigger the
problem on Windows 7 and Windows 10 1809 using Maven 3.6.2 and Java
1.8.0_222.

I did some additional testing on UB 16.04 using Maven 3.3.9 and the
same Java and was able to trigger the problem there as well under the
following conditions: "forkedProcessExitTimeoutInSeconds" was set to
10 seconds and the test was executed using the GUI of VMware
Workstation. The latter part is important, because the same exact
setting, but executing the test using SSH succeeds. Redirecting STDOUT
of running the test using the VMware-GUI succeeds as well. 

So I tried the same on Windows: Redicrecting STDOUT to some file makes
the test succeed as well on all formerly failing Windows. Using e.g. GIT
Bash with its own shell to run the test makes it succeed as well.

This makes two things clear in my opinion: There are background
threads creating a lot of output on STDOUT. That's why "forked*"
makes a difference at all, because either those background threads
have enough time to properly finish or not.

But the root cause of the problem seems to be reading that STDOUT by
the surrounding shell, which is either fast enough or not. The default
shells on Linux seem to be much faster in doing so compared to cmd.exe
and Powershell on Windows. The long running tests I had seen with my
additional Windows-tests were because of using RDP and VMware-GUI:
Printing STDOUT in those contexts is surely synchronized at some
point, therefore pretty slow and the tests need to run far longer for
the background-threads to properly finish. That's why things succeed
if STDOUT gets redirected on Windows, if GIT Bash is used and why the
same problem can be triggered on Linux if one is able to make the
surrounding shell reading STDOUT slower somehow.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Reply via email to