YARN-9584. Should put initializeProcessTrees method call before get pid. Contributed by Wanqiang Ji.
This commit is contained in:
parent
62ad9885ea
commit
67414a1a80
@ -487,11 +487,10 @@ public void run() {
|
||||
ContainerId containerId = entry.getKey();
|
||||
ProcessTreeInfo ptInfo = entry.getValue();
|
||||
try {
|
||||
String pId = ptInfo.getPID();
|
||||
|
||||
// Initialize uninitialized process trees
|
||||
initializeProcessTrees(entry);
|
||||
|
||||
String pId = ptInfo.getPID();
|
||||
if (pId == null || !isResourceCalculatorAvailable()) {
|
||||
continue; // processTree cannot be tracked
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user