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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • yarn
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tangzhankun Zhankun Tang Assign to me
            tangzhankun Zhankun Tang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment