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

ResourceHandlerChain#bootstrap is invoked twice during NM start if LinuxContainerExecutor enabled

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: yarn
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The ResourceHandlerChain#bootstrap will always be invoked in NM's ContainerScheduler#serviceInit (Involved by YARN-7715)

      So if LCE is enabled, the ResourceHandlerChain#bootstrap will be invoked first and then invoked again in ContainerScheduler#serviceInit.

      But actually, the "updateContainer" invocation in YARN-7715 depend on containerId's cgroups path creation in "preStart" method which only happens when we use "LinuxContainerExecutor". So the bootstrap of ResourceHandlerChain shouldn't happen in ContainerScheduler#serviceInit.

        Attachments

        1. YARN-9033-branch-3.2.001.patch
          3 kB
          Zhankun Tang
        2. YARN-9033-trunk.001.patch
          2 kB
          Zhankun Tang
        3. YARN-9033-trunk.002.patch
          3 kB
          Zhankun Tang
        4. YARN-9033-trunk.003.patch
          3 kB
          Peter Bacsko

          Activity

            People

            • Assignee:
              tangzhankun Zhankun Tang
              Reporter:
              tangzhankun Zhankun Tang
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: