Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13709

Ability to clean up subprocesses spawned by Shell when the process exits

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.9.0, 3.0.0-alpha2
    • None
    • None
    • Reviewed

    Description

      The runCommand code in Shell.java can get into a situation where it will ignore InterruptedExceptions and refuse to shutdown due to being in I/O waiting for the return value of the subprocess that was spawned. We need to allow for the subprocess to be interrupted and killed when the shell process gets killed. Currently the JVM will shutdown and all of the subprocesses will be orphaned and not killed.

      Attachments

        1. HADOOP-13709.001.patch
          7 kB
          Eric Badger
        2. HADOOP-13709.002.patch
          2 kB
          Eric Badger
        3. HADOOP-13709.003.patch
          4 kB
          Eric Badger
        4. HADOOP-13709.004.patch
          4 kB
          Eric Badger
        5. HADOOP-13709.005.patch
          4 kB
          Eric Badger
        6. HADOOP-13709.006.patch
          4 kB
          Eric Badger
        7. HADOOP-13709.007.patch
          5 kB
          Eric Badger
        8. HADOOP-13709.008.patch
          5 kB
          Eric Badger
        9. HADOOP-13709.009.patch
          5 kB
          Eric Badger
        10. HADOOP-13709.009.patch
          5 kB
          Eric Badger
        11. HADOOP-13709-branch-2.010.patch
          4 kB
          Eric Badger

        Issue Links

          Activity

            People

              ebadger Eric Badger
              ebadger Eric Badger
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: