You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2015/12/02 01:51:10 UTC

[jira] [Updated] (YARN-4408) NodeManager still reports negative running containers

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

Robert Kanter updated YARN-4408:
--------------------------------
    Attachment: YARN-4408.001.patch

The patch adds the missing check.  It also adds a unit test for this case, and for one of the other cases, which was missing.

> NodeManager still reports negative running containers
> -----------------------------------------------------
>
>                 Key: YARN-4408
>                 URL: https://issues.apache.org/jira/browse/YARN-4408
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 2.4.0
>            Reporter: Robert Kanter
>            Assignee: Robert Kanter
>         Attachments: YARN-4408.001.patch
>
>
> YARN-1697 fixed a problem where the NodeManager metrics could report a negative number of running containers.  However, it missed a rare case where this can still happen.
> YARN-1697 added a flag to indicate if the container was actually launched ({{LOCALIZED}} to {{RUNNING}}) or not ({{LOCALIZED}} to {{KILLING}}), which is then checked when transitioning from {{CONTAINER_CLEANEDUP_AFTER_KILL}} to {{DONE}} and {{EXITED_WITH_FAILURE}} to {{DONE}} to only decrement the gauge if we actually ran the container and incremented the gauge .  However, this flag is not checked while transitioning from {{EXITED_WITH_SUCCESS}} to {{DONE}}.



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