Namenode should return error when trying to delete non-empty directory
----------------------------------------------------------------------
Key: HADOOP-771
URL: http://issues.apache.org/jira/browse/HADOOP-771
Project: Hadoop
Issue Type: Improvement
Components: dfs
Affects Versions: 0.8.0
Environment: all
Reporter: Milind Bhandarkar
Currently, the namenode.delete() method allows recursive deletion of a
directory. That is, even a non-empty directory could be deleted using
namenode.delete(). To avoid costly programmer errors, the namenode should not
remove the non-empty directories in this method. Recursively deleting directory
should either be performed with listPaths() followed by a delete() for every
path, or with a specific namenode method such as deleteRecursive().
--
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