You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Daniel Templeton (JIRA)" <ji...@apache.org> on 2017/10/16 18:35:01 UTC

[jira] [Created] (YARN-7335) Unsafe cast to from long to int in DominantResourceCalculator.computeAvailableContainers()

Daniel Templeton created YARN-7335:
--------------------------------------

             Summary: 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.0.0-beta1
            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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org