zhenlineo opened a new pull request, #41776: URL: https://github.com/apache/spark/pull/41776
### What changes were proposed in this pull request? Reusing the same fixed server port in the tests causes some flakiness of running tests in parallel. Especially on some systems that it is slow to recycle ports. This PR makes the test to not use a fixed port and also to not start a connection unless it is needed. ### Why are the changes needed? Small test reliability improvements. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Only test changes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
