瀏覽代碼

HADOOP-14059. typo in s3a rename(self, subdir) error message. Contributed by Steve Loughran.

Arpit Agarwal 8 年之前
父節點
當前提交
90e3283a0a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java

+ 1 - 1
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java

@@ -812,7 +812,7 @@ public class S3AFileSystem extends FileSystem {
       //Verify dest is not a child of the source directory
       if (dstKey.startsWith(srcKey)) {
         throw new RenameFailedException(srcKey, dstKey,
-            "cannot rename a directory to a subdirectory o fitself ");
+            "cannot rename a directory to a subdirectory of itself ");
       }
 
       List<DeleteObjectsRequest.KeyVersion> keysToDelete = new ArrayList<>();