[ 
https://issues.apache.org/jira/browse/YARN-6612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Templeton updated YARN-6612:
-----------------------------------
    Attachment: YARN-6612.016.patch

Removed the used method and variable.  I don't think we need a constant for 
1.0f.  {{NEUTRAL}} was useful because it was a shortcut for creating an object, 
and the object it was creating wasn't self-evidently equivalent to unweighted 
and hence needed a descriptive name.  With weight as a float, 1.0f is 
self-evidently unweighted. I did add comments to {{getWeight()}} to help make 
it clear.

> Update fair scheduler policies to be aware of resource types
> ------------------------------------------------------------
>
>                 Key: YARN-6612
>                 URL: https://issues.apache.org/jira/browse/YARN-6612
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: fairscheduler
>    Affects Versions: YARN-3926
>            Reporter: Daniel Templeton
>            Assignee: Daniel Templeton
>         Attachments: YARN-6612.015.patch, YARN-6612.016.patch, 
> YARN-6612.YARN-3926.001.patch, YARN-6612.YARN-3926.002.patch, 
> YARN-6612.YARN-3926.004.patch, YARN-6612.YARN-3926.005.patch, 
> YARN-6612.YARN-3926.006.patch, YARN-6612.YARN-3926.007.patch, 
> YARN-6612.YARN-3926.008.patch, YARN-6612.YARN-3926.009.patch, 
> YARN-6612.YARN-3926.010.patch, YARN-6612.YARN-3926.011.patch, 
> YARN-6612.YARN-3926.012.patch, YARN-6612.YARN-3926.013.patch, 
> YARN-6612.YARN-3926.014.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to