Skip to content

OpenJDK test B8312065 cannot connect to network on test-docker-ubuntu2404-armv8-6 #4300

@adamfarley

Description

@adamfarley

Please set the title to indicate the test name and machine name where known.

To make it easy for the infrastructure team to repeat and diagnose, please
answer the following questions:

16:46:53  Exception in thread "main" java.net.SocketException: Network is unreachable (connect failed)
16:46:53  	at java.net.PlainSocketImpl.socketConnect(Native Method)
16:46:53  	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
16:46:53  	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
16:46:53  	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
16:46:53  	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
16:46:53  	at java.net.Socket.connect(Socket.java:607)
16:46:53  	at B8312065.main(B8312065.java:77)

Any other details:

It looks like this issue is due to the test not handling the SocketException properly when we try to connect to a broadcast address on Ubuntu.

JDK11 and 17 have been changed to catch the SocketException and throw a SkippedException. The PR can be found here, and the bug itself can be found here.

I've added a comment to propose backporting the fix to JDK8, but since this could be mistaken for a problem with the machine itself, I'm raising this issue to clarify the situation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions