You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Weijie Guo (Jira)" <ji...@apache.org> on 2023/03/09 06:02:00 UTC

[jira] [Closed] (FLINK-31298) ConnectionUtilsTest.testFindConnectingAddressWhenGetLocalHostThrows swallows IllegalArgumentException

     [ https://issues.apache.org/jira/browse/FLINK-31298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Weijie Guo closed FLINK-31298.
------------------------------
    Resolution: Fixed

> 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.17.0, 1.15.3, 1.16.1
>            Reporter: Matthias Pohl
>            Assignee: Wencong Liu
>            Priority: Major
>              Labels: pull-request-available, starter, test-stability
>
> 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)