[
https://issues.apache.org/jira/browse/HADOOP-6052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720668#action_12720668
]
Devaraj Das commented on HADOOP-6052:
-------------------------------------
Sorry for commenting so late on this one - the check for (startChar < 0),
should happen before endChar is evaluated, no? If startChar < 0, the endChar
evaluation is redundant..
> KeyFieldBasedPartitioner would lost data if specifed field not exist
> --------------------------------------------------------------------
>
> Key: HADOOP-6052
> URL: https://issues.apache.org/jira/browse/HADOOP-6052
> Project: Hadoop Core
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.20.0
> Reporter: Amar Kamat
> Assignee: Amar Kamat
> Fix For: 0.21.0
>
> Attachments: HADOOP-6052-v1.0-branch0.20.patch, HADOOP-6052-v1.0.patch
>
>
> 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!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.