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 "Miklos Szegedi (JIRA)" <ji...@apache.org> on 2017/04/04 20:44:41 UTC

[jira] [Created] (YARN-6438) Code can be improved in ContainersMonitorImpl.java

Miklos Szegedi created YARN-6438:
------------------------------------

             Summary: Code can be improved in ContainersMonitorImpl.java
                 Key: YARN-6438
                 URL: https://issues.apache.org/jira/browse/YARN-6438
             Project: Hadoop YARN
          Issue Type: Bug
          Components: nodemanager
            Reporter: Miklos Szegedi
            Priority: Minor


I noticed two code blocks that can be improved in ContainersMonitorImpl.java.  cpuUsagePercentPerCoreByAllContainers and cpuUsageTotalCoresByAllContainers track the same value and CHANGE_MONITORING_CONTAINER_RESOURCE is checked twice along with two calls to changeContainerResource.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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