You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2017/07/11 22:37:00 UTC

[jira] [Created] (YARN-6805) NPE in LinuxContainerExecutor due to null PrivilegedOperationException exit code

Jason Lowe created YARN-6805:
--------------------------------

             Summary: NPE in LinuxContainerExecutor due to null PrivilegedOperationException exit code
                 Key: YARN-6805
                 URL: https://issues.apache.org/jira/browse/YARN-6805
             Project: Hadoop YARN
          Issue Type: Bug
          Components: nodemanager
    Affects Versions: 2.8.1
            Reporter: Jason Lowe


The LinuxContainerExecutor contains a number of code snippets like this:
{code}
    } catch (PrivilegedOperationException e) {
      int exitCode = e.getExitCode();
{code}
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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org