Issue Details (XML | Word | Printable)

Key: HADOOP-3180
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Pete Wyckoff
Reporter: Pete Wyckoff
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

add name of faulty class to WritableName.getClass IOException upon ClassNotFoundException

Created: 04/Apr/08 09:50 PM   Updated: 23/Apr/09 07:17 PM
Return to search
Component/s: io
Affects Version/s: None
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-3180.1.txt 2008-09-24 01:44 AM Pete Wyckoff 4 kB
Text File Licensed for inclusion in ASF works patch.txt 2008-04-04 09:54 PM Pete Wyckoff 0.6 kB
Text File Licensed for inclusion in ASF works patch2.txt 2008-04-18 06:53 PM Pete Wyckoff 0.6 kB

Hadoop Flags: Reviewed
Resolution Date: 29/Sep/08 08:57 PM


 Description  « Hide
WritableName.getClass raises an IOException when it cannot load the class. The message is "WritableName can't load class" without the name of the class. Although one can get this from getCause, easier to see it just from the message.

propose change it to:

IOException newE = new IOException("WritableName can't load class: " + name);

I will attach a patch.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pete Wyckoff added a comment - 04/Apr/08 09:52 PM
just add name of the class that WritableNAme.getClass cant get in the exception it throws.

Hadoop QA added a comment - 04/Apr/08 11:18 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12379435/patch.txt
against trunk revision 643282.

@author +1. The patch does not contain any @author tags.

tests included -1. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

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 failed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2168/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2168/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2168/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2168/console

This message is automatically generated.


Pete Wyckoff added a comment - 08/Apr/08 05:11 PM
I think the tests had RPC timeouts that prevented it from passing - nothing to do with the patch.

Pete Wyckoff added a comment - 18/Apr/08 06:53 PM
same thing re-submitted to try QA again since I don't think the last failure was due to the patch but rather just a random failure.

Note, no unit tests because so trivial and only fix for debugging.


Pete Wyckoff added a comment - 18/Apr/08 06:54 PM
patch2.txt

Hadoop QA added a comment - 20/Apr/08 06:22 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12380533/patch2.txt
against trunk revision 645773.

@author +1. The patch does not contain any @author tags.

tests included -1. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

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/2283/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2283/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2283/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2283/console

This message is automatically generated.


Pete Wyckoff added a comment - 21/Apr/08 05:42 PM
I don't know where to put this comment, but this is only a change to a LOG.error stmt in adding a String variable to it, so it's not really worth doing a test on it...

Owen O'Malley added a comment - 23/Apr/08 06:49 AM
Pete, please add a test. Consistently adding tests when changes are made is by far the best way to have a large deep regression test suite, which helps future development. It is unlikely that branch has been covered by another test case.

Pete Wyckoff added a comment - 23/Apr/08 08:22 PM
sure, owen will do. Will have to remember how I was able to generate this exception I think it was because I didnt have all our Writable classes in the classpath.

I'll get it together but may need help on how to create the test as I would have to create a file with a custom Writable key but then remove that writable class from the running test and try to read the file.


Pete Wyckoff added a comment - 24/Sep/08 01:44 AM
The fix + complete unit tests for WritableName.

Hadoop QA added a comment - 26/Sep/08 07:05 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12390804/HADOOP-3180.1.txt
against trunk revision 699119.

+1 @author. The patch does not contain any @author tags.

+1 tests included. The patch appears to include 3 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 Eclipse classpath. The patch retains Eclipse classpath integrity.

-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/3376/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3376/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3376/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3376/console

This message is automatically generated.


Owen O'Malley added a comment - 29/Sep/08 08:57 PM
I just committed this. Thanks, Pete!

Hudson added a comment - 01/Oct/08 01:29 PM
Integrated in Hadoop-trunk #620 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/620/)
. Add name of missing class to WritableName.getClass
IOException. (Pete Wyckoff via omalley)