LuciferYang commented on code in PR #52552:
URL: https://github.com/apache/spark/pull/52552#discussion_r2426185631
##########
common/network-common/src/test/java/org/apache/spark/network/client/TransportClientFactorySuite.java:
##########
@@ -225,11 +225,12 @@ public void closeFactoryBeforeCreateClient() {
}
@Test
- public void fastFailConnectionInTimeWindow() {
+ public void fastFailConnectionInTimeWindow() throws IOException,
InterruptedException {
TransportClientFactory factory = context.createClientFactory();
TransportServer server = context.createServer();
int unreachablePort = server.getPort();
server.close();
+ Thread.sleep(1000);
Review Comment:
@dongjoon-hyun I also noticed this problem when testing versions prior to
4.2.6. There's a slight delay when the server executes the "close" operation.
Have you conducted an in-depth investigation into the reason for this? If not,
I will take some time to look into it when I'm available.
--
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]