Yicong Huang created SPARK-60273:
------------------------------------

             Summary: Avoid binding the default Connect port in 
SparkConnectClientSuite URI check
                 Key: SPARK-60273
                 URL: https://issues.apache.org/jira/browse/SPARK-60273
             Project: Spark
          Issue Type: Test
          Components: Connect
    Affects Versions: 4.4.0
            Reporter: Yicong Huang


SparkConnectClientSuite "Check URI: sc://localhost/, isCorrect: true" binds its 
dummy gRPC server to the fixed default port 
ConnectCommon.CONNECT_GRPC_BINDING_PORT (15002), because the URI has no port. 
If anything else on the CI runner holds 15002, the test fails with:

{noformat}
java.io.IOException: Failed to bind to address 0.0.0.0/0.0.0.0:15002
  at io.grpc.netty.NettyServer.start
  at 
org.apache.spark.sql.connect.client.SparkConnectClientSuite.startDummyServer
  at 
org.apache.spark.sql.connect.client.SparkConnectClientSuite.testClientConnection
{noformat}

Example: 
https://github.com/Yicong-Huang/spark/actions/runs/38784975930/job/116603715779

The test only needs to verify that the client resolves sc://localhost/ to the 
default port, which can be checked on client.configuration without binding the 
port.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to