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.
if (!ecludedHosts.contains(hostName)
          && !ecludedHosts.contains(NetUtils.normalizeHostName(hostName))) {

> 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

Reply via email to