|
Ok, so layered diffs are bad. Good to know. This is a combined diff against trunk. I removed the translation of DiskOutOfSpaceException to ENOSPC, since DiskOutOfSpaceException is apparently not thrown in the client.
Testing this automatically is a tricky business. AFAICT all hdfs tests are run as the superuser, so there's no way to trigger EACCES. I had written up a test to trigger ENOSPC, only to find that the exception that gets thrown when you fill up the disk is ambiguous (not to mention different from DFS to local FS). -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12383981/libhdfs-03-combined.patch against trunk revision 669646. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2701/testReport/ This message is automatically generated. -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12383981/libhdfs-03-combined.patch against trunk revision 677872. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2903/testReport/ This message is automatically generated. If libhdfs had a permissions API, then we could make a test that would trigger EACCES.
I'm sorry this patch sat so long to review, but I'd rather that the macro CHECK_EXCEPTION_IN_METHOD_INVOC declared the temporary jthr rather than just assuming it exists in the function that includes it. It would have also been better to fix the macro to take the arguments env and exc, although I know it is already using env implicitly.
How about this patch, which eliminates that ugly macro altogether?
I just committed this. Thanks, Ben!
Integrated in Hadoop-trunk #581 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/581/
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
http://issues.apache.org/jira/secure/attachment/12383928/libhdfs-02-meaningful-errno.patch
against trunk revision 667040.
+1 @author. The patch does not contain any @author tags.
-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.
-1 patch. The patch command could not apply the patch.
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2651/console
This message is automatically generated.