소스 검색

HDFS-14874. Fix TestHDFSCLI and TestDFSShell test break because of logging change in mkdir (#1522). Contributed by Gabor Bota.

Gabor Bota 5 년 전
부모
커밋
587a8eeec8
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Mkdir.java

+ 1 - 3
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Mkdir.java

@@ -81,9 +81,7 @@ class Mkdir extends FsCommand {
       }
 
       if (!item.fs.exists(itemParentPath)) {
-        throw new PathNotFoundException(String.format(
-            "mkdir failed for path: %s. Item parent path not found: %s.",
-        itemPath.toString(), itemParentPath.toString()));
+        throw new PathNotFoundException(itemParentPath.toString());
       }
     }
     if (!item.fs.mkdirs(item.path)) {