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

Rohith commented on YARN-2523:
------------------------------

Decommissioned Node metrics are set by NodeListManager. If decommission nodes 
rejoin, then RMNodeImpl#updateMetricsForRejoinedNode() again decrements metrics 
by 1 which cause negative value.

There should have check in RMNodeImpl#updateMetricsForRejoinedNode() for 
decommission state.
{code}
if (!ecludedHosts.contains(hostName)
          && !ecludedHosts.contains(NetUtils.normalizeHostName(hostName))) {
metrics.decrDecommisionedNMs();
}
{code}

> ResourceManager UI showing negative value for "Decommissioned Nodes" field
> --------------------------------------------------------------------------
>
>                 Key: YARN-2523
>                 URL: https://issues.apache.org/jira/browse/YARN-2523
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager, webapp
>    Affects Versions: 3.0.0
>            Reporter: Nishan Shetty
>            Assignee: Rohith
>
> 1. Decommission one NodeManager by configuring ip in excludehost file
> 2. Remove ip from excludehost file
> 3. Execute -refreshNodes command and restart Decommissioned NodeManager
> Observe that in RM UI negative value for "Decommissioned Nodes" field is shown



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to