You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uniffle.apache.org by ro...@apache.org on 2025/01/01 14:26:51 UTC

(incubator-uniffle) 05/10: [#2188] fix(client): Fixup timeoutMs for executeTasks in ShuffleWriteClientImpl#sendAppHeartbeat (#2189)

This is an automated email from the ASF dual-hosted git repository.

roryqi pushed a commit to branch branch-0.10
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git

commit 77fbd8582a780e10c663e82d9890d53449285ffe
Author: xumanbu <ja...@vipshop.com>
AuthorDate: Thu Dec 19 12:00:56 2024 +0800

    [#2188] fix(client): Fixup timeoutMs for executeTasks in ShuffleWriteClientImpl#sendAppHeartbeat (#2189)
    
    ### What changes were proposed in this pull request?
    
     Fixup timeoutMs for executeTasks in ShuffleWriteClientImpl#sendAppHeartbeat
    
    ### Why are the changes needed?
    
    The `timeoutMs` in ShuffleWriteClientImpl#sendAppHeartbeat method. The timeoutMs for per RPC is similar to the timeoutMs of ThreadUtils#executeTasks` for all servers RPC execute, and the logic here is flawed.
    
    Resetting the `timeoutMs` for `ThreadUtils.executeTask`.
    
    Fix: #2188
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    
    no need
---
 .../java/org/apache/uniffle/client/impl/ShuffleWriteClientImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/main/java/org/apache/uniffle/client/impl/ShuffleWriteClientImpl.java b/client/src/main/java/org/apache/uniffle/client/impl/ShuffleWriteClientImpl.java
index b78f06bd3..006eb1819 100644
--- a/client/src/main/java/org/apache/uniffle/client/impl/ShuffleWriteClientImpl.java
+++ b/client/src/main/java/org/apache/uniffle/client/impl/ShuffleWriteClientImpl.java
@@ -934,7 +934,7 @@ public class ShuffleWriteClientImpl implements ShuffleWriteClient {
           }
           return null;
         },
-        timeoutMs,
+        timeoutMs * allShuffleServers.size() / heartBeatThreadNum,
         "send heartbeat to shuffle server");
     if (coordinatorClient != null) {
       coordinatorClient.scheduleAtFixedRateToSendAppHeartBeat(request);