[ http://issues.apache.org/jira/browse/HADOOP-281?page=comments#action_12421733 ] Wendy Chien commented on HADOOP-281: ------------------------------------
Yes, the callers of mkdirs will need to check the return value. I looked over Arun's changes to FileUtil and they seem fine. I can make a separate patch which includes those changes once we decide if mkdirs should pass along the FilenotFoundException or only return a boolean. > 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
