Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31298

ConnectionUtilsTest.testFindConnectingAddressWhenGetLocalHostThrows swallows IllegalArgumentException

    XMLWordPrintableJSON

Details

    Description

      FLINK-24156 introduced NetUtils.acceptWithoutTimeout which caused the test to print a the stacktrace of an IllegalArgumentException:

      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)
      

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

      Attachments

        Issue Links

          Activity

            People

              Wencong Liu Wencong Liu
              mapohl Matthias Pohl
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: