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

Should put initializeProcessTrees method call before get pid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.2.0, 3.0.3, 3.1.2
    • 3.3.0, 3.2.1, 3.1.3
    • nodemanager
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: