You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2023/04/24 08:15:00 UTC
[jira] [Created] (FLINK-31911) Bad address construction in SqlClientTest
Chesnay Schepler created FLINK-31911:
----------------------------------------
Summary: 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
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)