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

NPE in LinuxContainerExecutor due to null PrivilegedOperationException exit code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.1
    • 2.9.0, 3.0.0-beta1, 2.8.2
    • nodemanager
    • None
    • Reviewed

    Description

      The LinuxContainerExecutor contains a number of code snippets like this:

          } catch (PrivilegedOperationException e) {
            int exitCode = e.getExitCode();
      

      PrivilegedOperationException#getExitCode can return null if the operation was interrupted, so when the JVM does auto-unboxing on that last line it can NPE if there was no exit code.

      Attachments

        1. YARN-6805.001.patch
          14 kB
          Jason Darrell Lowe

        Activity

          People

            jlowe Jason Darrell Lowe
            jlowe Jason Darrell Lowe
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: