|
for the first case, it needs to be documented that it follows mkdir -p. The du command documents it when help for the du command is displayed.
mkdir currently does not display what semantics it follows: whereas du shows this:
I do not think that throwing an exception (or exposing exception wording) is reasonable. The user is a person, not another program. this patch fixes the issues described inthe bug. mkdir on existing dir and file works the same as linux. This patch calls getFIleStatus before calling a mkdir and then checks to see if an exception is thrown, in that case proceeds with mkdir else errors out with the corresponding error messages.
+1 checking before invoking mkdir sounds reasonable.
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12375535/Hadoop-2195_1.patch against trunk revision 619744. @author +1. The patch does not contain any @author tags. tests included +1. The patch appears to include 6 new or modified tests. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new javac compiler warnings. release audit +1. The applied patch does not generate any new release audit warnings. findbugs +1. The patch does not introduce any new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1796/testReport/ This message is automatically generated. I just committed. Thanks Mahadev.
Integrated in Hadoop-trunk #401 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/401/
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The second case- throwing an exception- seems reasonable to me, though the error message is confusing.