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

Failed to launch new attempts because ApplicationMasterLauncher's threads all hang

    Details

    • Hadoop Flags:
      Reviewed

      Description

      ApplicationMasterLauncher create a thread pool whose size is 10 to deal with AMLauncherEventType(LAUNCH and CLEANUP).

      In our cluster, there was many NM with 10+ AM running on it, and one shut down for some reason. After RM found the NM LOST, it cleaned up AMs running on it. Then ApplicationMasterLauncher need handle these 10+ CLEANUP event. ApplicationMasterLauncher's thread pool would be filled up, and they all hang in the code containerMgrProxy.stopContainers(stopRequest) because NM was down, the default RPC time out is 15 mins. It means that in 15 mins ApplicationMasterLauncher could not handle new event such as LAUNCH, then new attempts will fails to launch because of time out.

        Attachments

        1. YARN-3809.03.patch
          6 kB
          Jun Gong
        2. YARN-3809.02.patch
          6 kB
          Jun Gong
        3. YARN-3809.01.patch
          3 kB
          Jun Gong

          Issue Links

            Activity

              People

              • Assignee:
                hex108 Jun Gong
                Reporter:
                hex108 Jun Gong
              • Votes:
                0 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: