You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2023/04/27 12:18:00 UTC

[jira] [Closed] (FLINK-31911) Bad address construction in SqlClientTest

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

Chesnay Schepler closed FLINK-31911.
------------------------------------
    Resolution: Fixed

master: 146847e53f10967dc2133cfdee6adbc57bccdd38

> Bad address construction in SqlClientTest
> -----------------------------------------
>
>                 Key: FLINK-31911
>                 URL: https://issues.apache.org/jira/browse/FLINK-31911
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / Client, Tests
>    Affects Versions: 1.16.0
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.18.0
>
>
> The SqlClientTest constructs a host:port pair with this:
> {code}
> InetSocketAddress.createUnresolved(
>                                     SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetAddress(),
>                                     SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetPort())
>                             .toString()
> {code}
> This is unnecessarily complicated and fails on Java 17 because the toString representation is _not_ guaranteed to return something of the form host:port.



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