Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9584

Should put initializeProcessTrees method call before get pid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.0.3, 3.1.2
    • Fix Version/s: 3.3.0, 3.2.1, 3.1.3
    • Component/s: nodemanager
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In ContainerMonitorImpl#MonitoringThread.run method had a logical error that get pid first then initialize uninitialized process trees. 

      String pId = ptInfo.getPID();
      
      // Initialize uninitialized process trees
      initializeProcessTrees(entry);
      if (pId == null || !isResourceCalculatorAvailable()) {
        continue; // processTree cannot be tracked
      }
      

        Attachments

        1. YARN-9584.001.patch
          1 kB
          Wanqiang Ji

          Issue Links

            Activity

              People

              • Assignee:
                jiwq Wanqiang Ji
                Reporter:
                jiwq Wanqiang Ji
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: