You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Andras Bokor (JIRA)" <ji...@apache.org> on 2016/08/12 13:29:20 UTC
[jira] [Commented] (HADOOP-10375) Local FS doesn't raise an error
on mkdir() over a file
[ https://issues.apache.org/jira/browse/HADOOP-10375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15418829#comment-15418829 ]
Andras Bokor commented on HADOOP-10375:
---------------------------------------
[~stevel@apache.org],
I think it was solved by HADOOP-9361.
{code:title=RawLocalFilesystem.java#mkdirsWithOptionalPermission}
if (p2f.exists() && !p2f.isDirectory()) {
throw new FileNotFoundException("Destination exists" +
" and is not a directory: " + p2f.getCanonicalPath());
}
{code}
Do you agree?
> Local FS doesn't raise an error on mkdir() over a file
> ------------------------------------------------------
>
> Key: HADOOP-10375
> URL: https://issues.apache.org/jira/browse/HADOOP-10375
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.3.0
> Reporter: Steve Loughran
> Assignee: Andras Bokor
> Priority: Minor
>
> if you mkdir() on a path where there is already a file, the operation does
> not fail. Instead the operation returns 0.
> This is at odds with the behaviour of HDFS.
> HADOOP-6229 add the check for the parent dir not being a file, but something similar is needed for the destination dir itself
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org