hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "haosdent (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-2706) Math.abs() is called on random integer in DefaultContainerExecutor#getWorkingDir()
Date Sun, 19 Oct 2014 16:16:33 GMT

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

haosdent updated YARN-2706:
---------------------------
    Attachment: YARN-2706.patch

> Math.abs() is called on random integer in DefaultContainerExecutor#getWorkingDir()
> ----------------------------------------------------------------------------------
>
>                 Key: YARN-2706
>                 URL: https://issues.apache.org/jira/browse/YARN-2706
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>         Attachments: YARN-2706.patch
>
>
> Here is the code:
> {code}
>     long randomPosition = Math.abs(r.nextLong()) % totalAvailable;
> {code}
> See http://stackoverflow.com/questions/7567350/findbugs-rv-absolute-value-of-random-int-warning



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message