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

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

Wanqiang Ji created YARN-9584:
---------------------------------

             Summary: 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


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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org