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

NM and service AM don't have updated status for reinitialized containers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.1.1
    • Fix Version/s: 3.1.2, 3.3.0, 3.2.1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Release Note:
      In progress upgrade status may show READY state sooner than actual upgrade operations. External caller to upgrade API is recommended to wait minimum 30 seconds before querying yarn app -status.

      Description

      Container resource monitoring is not stopped during the reinitialization process, and this prevents the NM from obtaining updated process tree information when the container starts running again. I observed a reinitialized container go from RUNNING to REINITIALIZING to REINITIALIZING_AWAITING_KILL to SCHEDULED to RUNNING. Container monitoring was then started for a second time, but since the trackingContainers entry had already been initialized for the container, ContainersMonitor skipped finding the new PID and IP for the container. A possible solution would be to stop the container monitoring in the reinitialization process so that the process tree information would be initialized properly when monitoring is restarted. When the same container was stopped by the NM later, the NM did not kill the container, and the service AM received an unexpected event (stop at reinitializing).

        Attachments

        1. YARN-9071.006.patch
          17 kB
          Chandni Singh
        2. YARN-9071.005.patch
          17 kB
          Chandni Singh
        3. YARN-9071.004.patch
          12 kB
          Chandni Singh
        4. YARN-9071.003.patch
          6 kB
          Chandni Singh
        5. YARN-9071.002.patch
          9 kB
          Chandni Singh
        6. YARN-9071.001.patch
          5 kB
          Chandni Singh
        7. q.log
          166 kB
          Eric Yang

          Issue Links

            Activity

              People

              • Assignee:
                csingh Chandni Singh
                Reporter:
                billie Billie Rinaldi
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: