hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy Ryza (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-4722) LocalJobRunner random ID should not be chosen with Math.abs(rand.nextInt())
Date Thu, 11 Oct 2012 18:03:02 GMT
Sandy Ryza created MAPREDUCE-4722:
-------------------------------------

             Summary: LocalJobRunner random ID should not be chosen with Math.abs(rand.nextInt())
                 Key: MAPREDUCE-4722
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4722
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: job submission
    Affects Versions: 2.0.2-alpha
            Reporter: Sandy Ryza
            Assignee: Sandy Ryza


According to findbugs 2, this can cause problems if the randomly generated int is Integer.MIN_VALUE
because Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message