[ 
https://issues.apache.org/jira/browse/YARN-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131673#comment-14131673
 ] 

zhihai xu commented on YARN-2534:
---------------------------------

[~kasha], thanks  to review and commit the patch.

> FairScheduler: Potential integer overflow calculating totalMaxShare
> -------------------------------------------------------------------
>
>                 Key: YARN-2534
>                 URL: https://issues.apache.org/jira/browse/YARN-2534
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: scheduler
>    Affects Versions: 2.5.0
>            Reporter: zhihai xu
>            Assignee: zhihai xu
>             Fix For: 2.6.0
>
>         Attachments: YARN-2534.000.patch
>
>
> FairScheduler: totalMaxShare is not calculated correctly in 
> computeSharesInternal for some cases.
> If the sum of MAX share of all Schedulables is more than Integer.MAX_VALUE 
> ,but each individual MAX share is not equal to Integer.MAX_VALUE. then 
> totalMaxShare will be a negative value, which will cause all fairShare are 
> wrongly calculated.



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

Reply via email to