Преглед изворни кода

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

Gabor Bota пре 5 година
родитељ
комит
587a8eeec8

+ 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)) {