You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Priyo Mustafi (JIRA)" <ji...@apache.org> on 2011/01/26 20:32:44 UTC

[jira] Commented: (MAPREDUCE-1915) IndexCache - getIndexInformation - check reduce index Out Of Bounds

    [ https://issues.apache.org/jira/browse/MAPREDUCE-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987178#action_12987178 ] 

Priyo Mustafi commented on MAPREDUCE-1915:
------------------------------------------

Hi Rares,
The fix makes sense.  I am writing a testcase for it but then I am not sure when this scenario is going to ever occur.   Looks like you noticed an OutOfBoundException but under what circumstance?



> IndexCache - getIndexInformation - check reduce index Out Of Bounds
> -------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1915
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1915
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: tasktracker
>    Affects Versions: 0.20.1, 0.20.2, 0.20.3, 0.21.0, 0.22.0
>            Reporter: Rares Vernica
>            Priority: Trivial
>         Attachments: MAPREDUCE-1915.patch
>
>
> When checking if the "reduce" index is out of bounds the check should be 
> info.mapSpillRecord.size() <= reduce
> instead of:
> info.mapSpillRecord.size() < reduce
> Not a big bug since an Out Of Bounds is thrown downstream anyway.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.