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

zhouky pushed a commit to branch branch-0.3
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git


The following commit(s) were added to refs/heads/branch-0.3 by this push:
     new 7161d3463 [CELEBORN-892][TEST] Fix statistics error of commitFiles 
method
7161d3463 is described below

commit 7161d3463cf49e6e7c9112680f46ac3edb05dd33
Author: e <[email protected]>
AuthorDate: Mon Aug 14 12:08:11 2023 +0800

    [CELEBORN-892][TEST] Fix statistics error of commitFiles method
    
    ### What changes were proposed in this pull request?
    
    Fix statistics error of commitFiles method
    res1 should be res2
    
    ### Why are the changes needed?
    
    Fix statistics error of commitFiles method
    
    ### Does this PR introduce _any_ user-facing change?
    
    NO
    
    ### How was this patch tested?
    
    passing GA
    
    Closes #1809 from jiaoqingbo/892.
    
    Authored-by: e <[email protected]>
    Signed-off-by: zky.zhoukeyong <[email protected]>
    (cherry picked from commit 307872d4f7702656f518fa678816329d0babb339)
    Signed-off-by: zky.zhoukeyong <[email protected]>
---
 .../main/scala/org/apache/celeborn/client/commit/CommitHandler.scala  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/client/src/main/scala/org/apache/celeborn/client/commit/CommitHandler.scala 
b/client/src/main/scala/org/apache/celeborn/client/commit/CommitHandler.scala
index 9bff5d3db..6a011e670 100644
--- 
a/client/src/main/scala/org/apache/celeborn/client/commit/CommitHandler.scala
+++ 
b/client/src/main/scala/org/apache/celeborn/client/commit/CommitHandler.scala
@@ -317,8 +317,8 @@ abstract class CommitHandler(
         CommitFilesResponse(
           status = if (res1.status == StatusCode.SUCCESS) res2.status else 
res1.status,
           (res1.committedPrimaryIds.asScala ++ 
res2.committedPrimaryIds.asScala).toList.asJava,
-          (res1.committedReplicaIds.asScala ++ 
res1.committedReplicaIds.asScala).toList.asJava,
-          (res1.failedPrimaryIds.asScala ++ 
res1.failedPrimaryIds.asScala).toList.asJava,
+          (res1.committedReplicaIds.asScala ++ 
res2.committedReplicaIds.asScala).toList.asJava,
+          (res1.failedPrimaryIds.asScala ++ 
res2.failedPrimaryIds.asScala).toList.asJava,
           (res1.failedReplicaIds.asScala ++ 
res2.failedReplicaIds.asScala).toList.asJava,
           res1.committedPrimaryStorageInfos,
           res1.committedReplicaStorageInfos,

Reply via email to