Anubhav Dhoot commented on YARN-3304:

I have a patch available now for YARN-3392 that shows how returning -1 would 
help implement it.
If we take the other approach it would be good to validate that its still 
possible by ensuring those changes are done in this jira. Specifically in this 
example, we should add the boolean options here to ensure we can still do 
YARN-3392. We can then compare the two approaches to see which one is better.

> ResourceCalculatorProcessTree#getCpuUsagePercent default return value is 
> inconsistent with other getters
> --------------------------------------------------------------------------------------------------------
>                 Key: YARN-3304
>                 URL: https://issues.apache.org/jira/browse/YARN-3304
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>            Reporter: Junping Du
>            Assignee: Karthik Kambatla
>            Priority: Blocker
>         Attachments: YARN-3304-v2.patch, YARN-3304.patch
> Per discussions in YARN-3296, getCpuUsagePercent() will return -1 for 
> unavailable case while other resource metrics are return 0 in the same case 
> which sounds inconsistent.

This message was sent by Atlassian JIRA

Reply via email to