cxzl25 commented on code in PR #46805:
URL: https://github.com/apache/spark/pull/46805#discussion_r1686322586
##########
common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/BlockStoreClient.java:
##########
@@ -161,6 +172,22 @@ public void getHostLocalDirs(
String[] execIds,
CompletableFuture<Map<String, String[]>> hostLocalDirsCompletable) {
checkInit();
+ int maxRetries = transportConf.maxIORetries();
+ int retryWaitTime = transportConf.ioRetryWaitTimeMs();
+ boolean enableSaslRetries = transportConf.enableSaslRetries();
+ retry(0, 0, maxRetries, enableSaslRetries, retryWaitTime, () -> {
+ CompletableFuture<Map<String, String[]>> tempHostLocalDirsCompletable =
+ new CompletableFuture<>();
+ getHostLocalDirsInternal(host, port, execIds,
tempHostLocalDirsCompletable);
+ return tempHostLocalDirsCompletable;
+ }, hostLocalDirsCompletable);
+ }
+
+ private void getHostLocalDirsInternal(
+ String host,
+ int port,
+ String[] execIds,
+ CompletableFuture<Map<String, String[]>> hostLocalDirsCompletable) {
Review Comment:
Thanks. Done.
--
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]