turboFei commented on a change in pull request #27943: [SPARK-31179] Fast fail 
the connection while last connection failed in fast fail time window
URL: https://github.com/apache/spark/pull/27943#discussion_r398591598
 
 

 ##########
 File path: 
common/network-common/src/main/java/org/apache/spark/network/client/TransportClientFactory.java
 ##########
 @@ -112,6 +116,7 @@ public TransportClientFactory(
     }
     this.metrics = new NettyMemoryMetrics(
       this.pooledAllocator, conf.getModuleName() + "-client", conf);
+    fastFailTimeWindow = conf.maxIORetries() > 0 ? 
(int)(conf.ioRetryWaitTimeMs() * 0.95) : 0;
 
 Review comment:
   thanks, make sense.
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to