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

[jira] [Created] (YARN-9124) Resolve contradiction in ResourceUtils: addMandatoryResources / checkMandatoryResources work differently

Szilard Nemeth created YARN-9124:
------------------------------------

             Summary: Resolve contradiction in ResourceUtils: addMandatoryResources / checkMandatoryResources work differently
                 Key: YARN-9124
                 URL: https://issues.apache.org/jira/browse/YARN-9124
             Project: Hadoop YARN
          Issue Type: Improvement
            Reporter: Szilard Nemeth


{{ResourceUtils#addMandatoryResources}}: Adds only memory and vcores as mandatory resources.

{{ResourceUtils#checkMandatoryResources}}: YARN-6620 added some code to this. This method not only checks memory and vcores, but all the resources referred in ResourceInformation#MANDATORY_RESOURCES.

I think it would be good to call {{MANDATORY_RESOURCES}} as {{PREDEFINED_RESOURCES}} or something like that and use a similar name for {{checkMandatoryResources}}.



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

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