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

Process group remains alive after container process is killed externally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.6.0
    • nodemanager
    • None
    • CentOS 6.4

    • Reviewed

    Description

      If the main container process is killed externally, ContainerLaunch does not kill the rest of the process group. Before sending the event that results in the ContainerLaunch.containerCleanup method being called, ContainerLaunch sets the "completed" flag to true. Then when cleaning up, it doesn't try to read the pid file if the completed flag is true. If it read the pid file, it would proceed to send the container a kill signal. In the case of the DefaultContainerExecutor, this would kill the process group.

      Attachments

        1. YARN-1922.1.patch
          2 kB
          Billie Rinaldi
        2. YARN-1922.2.patch
          7 kB
          Billie Rinaldi
        3. YARN-1922.3.patch
          7 kB
          Billie Rinaldi
        4. YARN-1922.4.patch
          8 kB
          Billie Rinaldi
        5. YARN-1922.5.patch
          8 kB
          Billie Rinaldi
        6. YARN-1922.6.patch
          7 kB
          Billie Rinaldi

        Issue Links

          Activity

            People

              billie Billie Rinaldi
              billie Billie Rinaldi
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: