Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15736 Support Java 17 (LTS)
  3. FLINK-25003

RestClientTest#testConnectionTimeout fails on Java 17

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • Runtime / REST, Tests
    • None

    Description

      The test fails because the exception type has changed; with the returned exception no longer being a ConnectException but just a plain SocketException, presumably because the JDK fails earlier since it can't find a route.

      We could change the assertion, or change the test somehow to actually work against a server which doesn't allow the establishment of a connection.

      Attachments

        Activity

          People

            chesnay Chesnay Schepler
            chesnay Chesnay Schepler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: