hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12172) FsShell mkdir -p makes an unnecessary check for the existence of the parent.
Date Sat, 04 Jul 2015 14:55:07 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613866#comment-14613866
] 

Hudson commented on HADOOP-12172:
---------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #244 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/244/])
HADOOP-12172. FsShell mkdir -p makes an unnecessary check for the existence of the parent.
Contributed by Chris Nauroth. (cnauroth: rev f3796224bfdfd88e2428cc8a9915bdfdc62b48f3)
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Mkdir.java


> FsShell mkdir -p makes an unnecessary check for the existence of the parent.
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-12172
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12172
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Minor
>             Fix For: 2.8.0
>
>         Attachments: HADOOP-12172.001.patch
>
>
> The {{mkdir}} command in {{FsShell}} checks for the existence of the parent of the directory
and returns an error if it doesn't exist.  The {{-p}} option suppresses the error and allows
the directory creation to continue, implicitly creating all missing intermediate directories.
 However, the existence check still runs even with {{-p}} specified, and its result is ignored.
 Depending on the file system, this is a wasteful RPC call (HDFS) or HTTP request (WebHDFS/S3/Azure)
imposing extra latency for the client and extra load for the server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message