mridulm commented on code in PR #41785:
URL: https://github.com/apache/spark/pull/41785#discussion_r1252501967


##########
common/network-common/src/main/java/org/apache/spark/network/client/TransportClientFactory.java:
##########
@@ -245,12 +245,13 @@ TransportClient createClient(InetSocketAddress address)
     logger.debug("Creating new connection to {}", address);
 
     Bootstrap bootstrap = new Bootstrap();
+    int connCreateTimeout = conf.connectionCreationTimeoutMs();

Review Comment:
   @yaooqinn we have discussed this quite a bit already and now going in 
circles :-)
   Essentially my point is this - instead of rejecting invalid configurations, 
we are trying to workaround invalid user configs. Once released, this will be a 
pattern we have to then continue supporting - I am not seeing a good reason why 
we have to introduce this new behavior.
   
   I would recommend simply rejecting the invalid config with an 
`IllegalArgumentException`, instead of introducing behavior which tries to 
workaround it: as long as the user gets to see the exception, they can fix the 
issue and mitigate it.
   
   +CC @dongjoon-hyun as well, since you reviewed the PR.



-- 
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]

Reply via email to