Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
3.2.0, 4.0.0
-
None
-
None
Description
I'm not sure if there is actually a bug, but this looks highly suspect:
public Object set(final Object o, final Text text) { return new BytesWritable(text == null ? null : text.getBytes()); }
There are two components to a Text object. There are the internal bytes and the length of the bytes. The two are independent. I.e., a quick "reset" on the Text object simply sets the internal length counter to zero. This code is potentially looking at obsolete data that it shouldn't be seeing because it is not considering the length of the Text.