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 "Wanqiang Ji (JIRA)" <ji...@apache.org> on 2019/05/27 10:06:00 UTC

[jira] [Updated] (YARN-9584) Should put initializeProcessTrees method call before get pid

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

Wanqiang Ji updated YARN-9584:
------------------------------
    Attachment: YARN-9584.001.patch

> Should put initializeProcessTrees method call before get pid
> ------------------------------------------------------------
>
>                 Key: YARN-9584
>                 URL: https://issues.apache.org/jira/browse/YARN-9584
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>            Reporter: Wanqiang Ji
>            Assignee: Wanqiang Ji
>            Priority: Critical
>         Attachments: YARN-9584.001.patch
>
>
> In ContainerMonitorImpl#MonitoringThread.run method had a logic error that get pid first then initialize uninitialized process trees. 
> {code:java}
> String pId = ptInfo.getPID();
> // Initialize uninitialized process trees
> initializeProcessTrees(entry);
> if (pId == null || !isResourceCalculatorAvailable()) {
>   continue; // processTree cannot be tracked
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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