You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/04/27 12:17:00 UTC
[jira] [Updated] (FLINK-31911) Bad address construction in SqlClientTest
[ https://issues.apache.org/jira/browse/FLINK-31911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated FLINK-31911:
-----------------------------------
Labels: pull-request-available (was: )
> 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)