hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Templeton (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-7335) Unsafe cast to from long to int in DominantResourceCalculator.computeAvailableContainers()
Date Mon, 16 Oct 2017 18:36:00 GMT

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

Daniel Templeton updated YARN-7335:
-----------------------------------
    Target Version/s: 3.1.0  (was: 3.0.0-beta1)

> Unsafe cast to from long to int in DominantResourceCalculator.computeAvailableContainers()
> ------------------------------------------------------------------------------------------
>
>                 Key: YARN-7335
>                 URL: https://issues.apache.org/jira/browse/YARN-7335
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: scheduler
>    Affects Versions: 3.1.0
>            Reporter: Daniel Templeton
>            Assignee: Daniel Templeton
>            Priority: Critical
>
> {code}
>     long min = Long.MAX_VALUE;
>     ...
>     return min > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) min;
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message