You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2022/02/28 01:46:48 UTC

[hadoop] branch branch-3.2.3 updated: HADOOP-17112. S3A committers can't handle whitespace in paths. (#2953)

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

aajisaka pushed a commit to branch branch-3.2.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2.3 by this push:
     new a8f0841  HADOOP-17112. S3A committers can't handle whitespace in paths. (#2953)
a8f0841 is described below

commit a8f08410d4c745e61a29d50b3be5593f74a47012
Author: Steve Loughran <st...@cloudera.com>
AuthorDate: Sun Apr 25 18:33:55 2021 +0100

    HADOOP-17112. S3A committers can't handle whitespace in paths. (#2953)
    
    Contributed by Krzysztof Adamski.
    
    (cherry picked from commit 88a550bc3a73dbbbfb35e2ef29d9c34ad059d1a8)
    
     Conflicts:
    	hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/commit/ITestCommitOperations.java
    
    (cherry picked from commit adfd767225b6d65e40d3511a32dbf72649041d94)
---
 .../src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java
index 55ace17..1ccc9c2 100644
--- a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java
+++ b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java
@@ -431,7 +431,7 @@ public class CommitOperations {
     if (!localFile.isFile()) {
       throw new FileNotFoundException("Not a file: " + localFile);
     }
-    String destURI = destPath.toString();
+    String destURI = destPath.toUri().toString();
     String destKey = fs.pathToKey(destPath);
     String uploadId = null;
 

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org