hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eric baldeschwieler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-281) dfs.FSDirectory.mkdirs can create sub-directories of a file!
Date Thu, 20 Jul 2006 17:57:15 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-281?page=comments#action_12422458 ] 
eric baldeschwieler commented on HADOOP-281:

Why not throw an exception on failure?  That seems like the more correct thing to do.  
Checking return codes for failure is so 20th century.

> dfs.FSDirectory.mkdirs can create sub-directories of a file!
> ------------------------------------------------------------
>                 Key: HADOOP-281
>                 URL: http://issues.apache.org/jira/browse/HADOOP-281
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.3.1
>            Reporter: Sameer Paranjpye
>             Fix For: 0.5.0
>         Attachments: addNode.patch, mkdirs.patch, TestDFSMkdirs.java
> dfs.FSDirectory.mkdirs will merrily adds children to a directory tree node without checking
whether it represents a directory. So it is possible to create a subdirectories of a file.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message