Ngone51 commented on a change in pull request #27419: 
[WIP][SPARK-30694][SHUFFLE]If exception occured while fetching blocks by 
ExternalBlockClient, fail early when External Shuffle Service is not alive
URL: https://github.com/apache/spark/pull/27419#discussion_r378611424
 
 

 ##########
 File path: 
common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/ExternalBlockStoreClient.java
 ##########
 @@ -105,7 +109,23 @@ public void fetchBlocks(
           (blockIds1, listener1) -> {
             // Unless this client is closed.
             if (clientFactory != null) {
-              TransportClient client = clientFactory.createClient(host, port);
+              TransportClient client = null;
+              try {
+                client = clientFactory.createClient(host, port);
+              } catch (InterruptedException e) {
+                throw e;
+              } catch (IOException e) {
+                if (!isHostReachable(host, 3000) || 
!isHostPortConnectable(host, port)) {
 
 Review comment:
   It's also possible that `Host` is unreachable or connectable when network is 
unstable, right?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to