Matthias Pohl created FLINK-31298:
-------------------------------------

             Summary: 
ConnectionUtilsTest.testFindConnectingAddressWhenGetLocalHostThrows swallows 
IllegalArgumentException
                 Key: FLINK-31298
                 URL: https://issues.apache.org/jira/browse/FLINK-31298
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Network
    Affects Versions: 1.16.1, 1.15.3, 1.17.0
            Reporter: Matthias Pohl


FLINK-24156 introduced {{NetUtils.acceptWithoutTimeout}} which caused the test 
to print a the stacktrace of an {{IllegalArgumentException}}:
{code}
Exception in thread "Thread-0" java.lang.IllegalArgumentException: serverSocket 
SO_TIMEOUT option must be 0
        at 
org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:138)
        at 
org.apache.flink.util.NetUtils.acceptWithoutTimeout(NetUtils.java:139)
        at 
org.apache.flink.runtime.net.ConnectionUtilsTest$1.run(ConnectionUtilsTest.java:83)
        at java.lang.Thread.run(Thread.java:750)
{code}

This is also shown in the Maven output of CI runs and might cause confusion. 
The test should be fixed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to