|
Since applications using this package break with 0.17, Spyros-
This looks like the right idea; a couple suggestions:
-1 as the patch should have a unit test.
Chris,
The tag needs cloning, because it's stored as a key in the SortedMap. Otherwise, the Text.equals() method always returns true (see As for the WritableUtils.clone() suggestion, I upload a new version of the patch which incorporates it. Nigel, Spyros, Chris has agreed to write some unit tests for Hadoop 0.18.
Sorry, I mean it doesn't need to be cloned there, for the lookup. Since the record needs to be cloned anyway and it includes the tag, it should be sufficient to clone the record and use the tag for the map key. I just committed this. Thanks, Spyros
Integrated in Hadoop-trunk #523 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/523/
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HADOOP-3522. The patch just clones the objects returned from the ValueIterator and forces the user-provided classes to implement a clone() method as well.