Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
-
KeyFieldBasedPartitioner throws ArrayOutOfIndex when passed an empty key. This patch hashes empty key to 0 hashcode.
Description
When using KeyFieldBasedPartitioner, if the record doesn't contain the specified field, the endChar would equal with array.length, which throw ArrayOutOfIndex exception, losing that record!
Attachments
Attachments
Issue Links
- is blocked by
-
MAPREDUCE-735 ArrayIndexOutOfBoundsException is thrown by KeyFieldBasedPartitioner
- Resolved
- is part of
-
MAPREDUCE-52 KeyFieldBasedPartitioner would lost data if specifed field not exist, and it should encode free not only support utf8
- Open