You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Karthik Kambatla (JIRA)" <ji...@apache.org> on 2014/09/11 21:05:34 UTC

[jira] [Commented] (YARN-2534) FairScheduler: Potential integer overflow calculating totalMaxShare

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

Karthik Kambatla commented on YARN-2534:
----------------------------------------

Pretty straight-forward fix. +1. 

> 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
>         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)