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)