JDK-8321124 : java/util/stream/GatherersTest.java times out
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.stream
  • Affected Version: 22
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2023-11-30
  • Updated: 2024-02-14
  • Resolved: 2023-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b27Fixed
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8321127 :  
Description
The following test timed out in the JDK22 CI:

java/util/stream/GatherersTest.java

Here's a log file snippet from the linux-x64 sighting:

#section:junit
----------messages:(8/291)----------
command: junit GatherersTest
reason: User specified action: run junit GatherersTest 
started: Thu Nov 30 15:15:11 UTC 2023
Mode: othervm [test requires --enable-preview]
Timeout information:
--- Timeout information end.
finished: Thu Nov 30 15:24:13 UTC 2023
elapsed time (seconds): 541.582
----------configuration:(0/0)----------
----------System.out:(1/36)----------
Timeout signalled after 480 seconds
----------System.err:(17/1718)----------
STARTED    GatherersTest::testMapConcurrentAPIandContract '[1] Config[streamSize=0, parallel=false]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[1] Config[streamSize=0, parallel=false]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[2] Config[streamSize=0, parallel=true]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[2] Config[streamSize=0, parallel=true]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[3] Config[streamSize=1, parallel=false]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[3] Config[streamSize=1, parallel=false]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[4] Config[streamSize=1, parallel=true]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[4] Config[streamSize=1, parallel=true]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[5] Config[streamSize=10, parallel=false]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[5] Config[streamSize=10, parallel=false]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[6] Config[streamSize=10, parallel=true]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[6] Config[streamSize=10, parallel=true]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[7] Config[streamSize=33, parallel=false]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[7] Config[streamSize=33, parallel=false]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[8] Config[streamSize=33, parallel=true]'
SUCCESSFUL GatherersTest::testMapConcurrentAPIandContract '[8] Config[streamSize=33, parallel=true]'
STARTED    GatherersTest::testMapConcurrentAPIandContract '[9] Config[streamSize=99, parallel=false]'
----------rerun:(38/5924)*----------

<snip>

result: Error. Program `/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2129/linux-x64.jdk/jdk-22/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 541574ms).

Comments
Changeset: 9d776777 Author: Viktor Klang <vklang@openjdk.org> Committer: Alan Bateman <alanb@openjdk.org> Date: 2023-12-06 07:12:03 +0000 URL: https://git.openjdk.org/jdk/commit/9d776777c503ede4410ae3fe744cb267e9175433
06-12-2023

[~shade] Yes, but after https://github.com/openjdk/jdk/pull/16928 that will no longer be the case. The `GatherersTest` has been split out to individual files and made further granular to speed up execution--while at the same time un-confusing the situation. :) I've addressed test/jdk/java/util/stream/GathererTest.java in that PR as well
05-12-2023

It took me a while to understand, so note to fellow confused people, there are *two* similarly named tests: % ls -1 test/jdk/java/util/stream/Gatherer* test/jdk/java/util/stream/GathererTest.java (currently failing in GHA) test/jdk/java/util/stream/GatherersTest.java (problem-listed by JDK-8321127)
05-12-2023

[~kvn] I've addressed that as well in my PR for this bug.
02-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16928 Date: 2023-12-01 17:00:48 +0000
01-12-2023

I got this test failure on 32-bit linux-x86 in GHA during my PR testing: ... FAILED GathererTest::testMassivelyComposedGatherers '[24] Config[streamSize=9999, parallel=true, defaultImpl=true]' ... [ JUnit Containers: found 16, started 16, succeeded 16, failed 0, aborted 0, skipped 0] [ JUnit Tests: found 289, started 289, succeeded 265, failed 24, aborted 0, skipped 0] https://github.com/vnkozlov/jdk/actions/runs/7053487347/job/19201215346
01-12-2023