|
added 0.19 as an affected version
initial attempt, without unit tests
Wouldn't it be better to use the class loader associated with the configuration rather than the current thread? Basically, use
conf.getClassByName(name); Clearly the conf for the serializer would need to be saved from the constructor. delegates classloading back to Configuration
delegates back to Configuration
All but org.apache.hadoop.fs.TestLocalDirAllocator tests pass.
I think this is unrelated: via ant test-patch...
seems to be down on lack of tests. unsure, per previous comment, how to test classloader issues. [exec] -1 overall. I just committed this. Thanks, Chris!
Integrated in Hadoop-trunk #640 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/640/
. SerializationFactory now uses the current context ClassLoader allowing for user supplied Serialization instances. Contributed by Chris Wensel. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I can submit a patch with the one line change. but I do not know if there should (or even could be) an accompanying unit test for this. please advise.