eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 722 forks source link

jdk_nio_0_FAILED java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java test InheritedChannelTest.test("StateTest", [StateTest]): failure #19283

Open JasonFengJ9 opened 7 months ago

JasonFengJ9 commented 7 months ago

Failure link

From an internal build(sles15-aarch64-4):

java version "11.0.23-beta" 2024-04-16
IBM Semeru Runtime Certified Edition 11.0.23+7-202404060114 (build 11.0.23-beta+7)
Eclipse OpenJ9 VM 11.0.23+7-202404060114 (build master-d1a1a70e5, JRE 11 Linux aarch64-64-Bit Compressed References 20240406_560 (JIT enabled, AOT enabled)
OpenJ9   - d1a1a70e5
OMR      - 8037ccd04
JCL      - 1b6c09aa97 based on jdk-11.0.23+7)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2024-04-06T02:24:17.480Z] variation: Mode150
[2024-04-06T02:24:17.480Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog 

[2024-04-06T03:03:13.095Z] TEST: java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java

[2024-04-06T03:03:13.096Z] test InheritedChannelTest.test("StateTest", [StateTest]): failure
[2024-04-06T03:03:13.096Z] java.lang.RuntimeException: Expected to get exit value of [0]
[2024-04-06T03:03:13.096Z] 
[2024-04-06T03:03:13.096Z]  at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:431)
[2024-04-06T03:03:13.096Z]  at InheritedChannelTest.test(InheritedChannelTest.java:117)

[2024-04-06T03:03:13.097Z] java.lang.Exception: failures: 5
[2024-04-06T03:03:13.097Z]  at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
[2024-04-06T03:03:13.097Z]  at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
[2024-04-06T03:03:13.097Z]  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2024-04-06T03:03:13.097Z]  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2024-04-06T03:03:13.097Z]  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2024-04-06T03:03:13.097Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:572)
[2024-04-06T03:03:13.097Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2024-04-06T03:03:13.097Z]  at java.base/java.lang.Thread.run(Thread.java:839)
[2024-04-06T03:03:13.097Z] 
[2024-04-06T03:03:13.097Z] JavaTest Message: Test threw exception: java.lang.Exception: failures: 5

[2024-04-06T03:19:05.465Z] jdk_nio_0_FAILED

50x internal grinder - 8/10 failed at sles15-aarch64-3, passed at ubu22-aarch64-1, ubu22-aarch64-2, rhel8-aarch64-5 and rhel8-aarch64-3

pshipton commented 7 months ago

Does the RI also fail on the problem machine?

JasonFengJ9 commented 7 months ago

RI 3x grinder at sles15-aarch64-3 failed with RuntimeException: Expected message not received. No failure at java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java.

RI 100x grinder - 2 failures ConnectException: Connection refused.

This seems a network sensitive test.

pshipton commented 7 months ago

I also find the following in the original failure output.

23:03:13  Exception in thread "main" java.io.IOException: Timed out waiting for service to report test result
23:03:13    at StateTest.waitForTestResult(StateTest.java:83)
23:03:13    at StateTest.main(StateTest.java:168)

23:03:13  Bad response or premature EOF, bytes read: 
23:03:13  java.lang.RuntimeException: Bad response or premature EOF from service
23:03:13  Exception in thread "main" java.lang.RuntimeException: Test failed - see log for details
23:03:13    at EchoTest.main(EchoTest.java:181)

23:03:13  Exception in thread "main" java.lang.RuntimeException: Timed out waiting for connection to close
23:03:13    at CloseTest.main(CloseTest.java:85)