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

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

The test connects to 240.0.0.0 (reserved space, RFC 1112) 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.

(cherry picked from commit fdc2686e33d8dd1a338e3cc1432a6b8b2cad6d71)

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

With regards,
GitHub Actions via GitBox

Reply via email to