[ 
https://issues.apache.org/jira/browse/HADOOP-1393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Owen O'Malley updated HADOOP-1393:
----------------------------------

    Attachment: 1393.patch

replaces Math.abs(Random.nextInt()) with Random.nextInt(Integer.MAX_VALUE)

> using Math.abs(Random.getInt()) does not guarantee a positive number
> --------------------------------------------------------------------
>
>                 Key: HADOOP-1393
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1393
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.13.0
>            Reporter: Owen O'Malley
>         Assigned To: Owen O'Malley
>             Fix For: 0.14.0
>
>         Attachments: 1393.patch
>
>
> Findbugs suggested that we fix the potential for Integer.MIN_VALUE to slip 
> through Math.abs.

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

Reply via email to