The GitHub Actions job "Flink CI (beta)" on flink.git/master has failed.
Run started by GitHub user MartijnVisser (triggered by MartijnVisser).

Head commit for run:
fdc2686e33d8dd1a338e3cc1432a6b8b2cad6d71 / Martijn Visser 
<[email protected]>
[FLINK-39105][rest] Fix RestClientTest.testConnectionTimeout to handle 
environment-dependent exception types

The test connects to 192.0.2.1 (RFC 5737 TEST-NET-1) with a 1ms connection
timeout and asserts ConnectTimeoutException. On CI runners without a route
to this address, the OS immediately returns "Network is unreachable"
(AnnotatedSocketException) instead of timing out, causing the test to fail.

Both ConnectTimeoutException and AnnotatedSocketException are SocketException
subtypes, so the assertion now uses SocketException as the expected cause type.
The existing hasMessageContaining(unroutableIp) check still verifies the
failure is for the correct destination.

Note: on environments where the OS rejects immediately, the configured
connection timeout is never exercised. The test still verifies that connection
failures propagate correctly, but does not validate the timeout code path on
those environments. A more robust approach would require simulating a
non-completing TCP handshake, which is not portable.

Report URL: https://github.com/apache/flink/actions/runs/22241956044

With regards,
GitHub Actions via GitBox

Reply via email to