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 "Szilard Nemeth (JIRA)" <ji...@apache.org> on 2018/11/06 09:23:00 UTC

[jira] [Commented] (YARN-8701) If the single parameter in Resources#createResourceWithSameValue is greater than Integer.MAX_VALUE, then the value of vcores will be -1

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

Szilard Nemeth commented on YARN-8701:
--------------------------------------

Hi [~Sen Zhao]!

Thanks for this patch, this is a nice catch.

Please remove the code part {{

throws Exception }} in the tests as Exception is actually not thrown.

Otherwise, LGTM

> If the single parameter in Resources#createResourceWithSameValue is greater than Integer.MAX_VALUE, then the value of vcores will be -1
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-8701
>                 URL: https://issues.apache.org/jira/browse/YARN-8701
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>            Reporter: Sen Zhao
>            Assignee: Sen Zhao
>            Priority: Major
>         Attachments: YARN-8701.001.patch
>
>
> If I configure *MaxResources* in fair-scheduler.xml, like this:
> {code}<MaxResources>resource1=50</MaxResources>{code}
> In the queue, the *MaxResources* value will change to 
> {code}Max Resources: <memory: CLUSTER_MEMORY, VCores: 0, resource1: 50>{code}
> I think the value of VCores should be *CLUSTER_VCORES*.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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