[ 
https://issues.apache.org/jira/browse/YARN-488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Nauroth updated YARN-488:
-------------------------------

    Attachment: YARN-488.1.patch

There were 2 problems.  The call from {{ContainerLaunch#sanitizeEnv}} to 
{{FileUtil#createJarWithClassPath}} would fail with {{NullPointerException}}, 
because the test's application master submission didn't include a classpath.  
I've added a null check so that {{ContainerLaunch#sanitizeEnv}} won't attempt 
to set a classpath when the container launch isn't providing one.  The other 
problem was that the test used the Unix sleep command.  I've added logic to 
check for Windows and then simulate sleep using ping.

I verified that the test passes on Mac and Windows with this patch.
                
> TestContainerManagerSecurity fails on Windows
> ---------------------------------------------
>
>                 Key: YARN-488
>                 URL: https://issues.apache.org/jira/browse/YARN-488
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: YARN-488.1.patch
>
>
> These tests are failing to launch containers correctly when running on 
> Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to