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

nicholasjiang pushed a commit to branch branch-0.6
in repository https://gitbox.apache.org/repos/asf/celeborn.git


The following commit(s) were added to refs/heads/branch-0.6 by this push:
     new 075e98293 [CELEBORN-2188] Abort multipart upload for S3 and OSS in 
DfsTierWriter#handleException
075e98293 is described below

commit 075e982935169ea22e405e002accfb2aa3b9e2eb
Author: xxx <[email protected]>
AuthorDate: Mon Nov 3 20:40:37 2025 +0800

    [CELEBORN-2188] Abort multipart upload for S3 and OSS in 
DfsTierWriter#handleException
    
    ### What changes were proposed in this pull request?
    
    Abort multipart upload for S3 and OSS in `DfsTierWriter#handleException`.
    
    ### Why are the changes needed?
    
    When handling exception of S3 or OSS, `DfsTierWriter` should abort 
multipart upload instead of complete.
    
    ### Does this PR resolve a correctness bug?
    
    No.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    CI.
    
    Closes #3522 from xy2953396112/CELEBORN-2188.
    
    Authored-by: xxx <[email protected]>
    Signed-off-by: SteNicholas <[email protected]>
    (cherry picked from commit 04231e07dcaab6a75def6d28e3efe19d887beda3)
    Signed-off-by: SteNicholas <[email protected]>
---
 .../apache/celeborn/service/deploy/worker/storage/TierWriter.scala    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/TierWriter.scala
 
b/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/TierWriter.scala
index 4092336f3..7cfdd3bd2 100644
--- 
a/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/TierWriter.scala
+++ 
b/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/TierWriter.scala
@@ -705,12 +705,12 @@ class DfsTierWriter(
   override def handleException(): Unit = {
     if (s3MultipartUploadHandler != null) {
       logWarning(s"Abort s3 multipart upload for ${fileInfo.getFilePath}")
-      s3MultipartUploadHandler.complete()
+      s3MultipartUploadHandler.abort()
       s3MultipartUploadHandler.close()
     }
     if (ossMultipartUploadHandler != null) {
       logWarning(s"Abort Oss multipart upload for ${fileInfo.getFilePath}")
-      ossMultipartUploadHandler.complete()
+      ossMultipartUploadHandler.abort()
       ossMultipartUploadHandler.close()
     }
   }

Reply via email to