[ 
https://issues.apache.org/jira/browse/YARN-6150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854414#comment-15854414
 ] 

Daniel Sturman commented on YARN-6150:
--------------------------------------

The issue in the test was that a test assumed it would see Containers COMPLETE 
before being removed.  The asynchronous nature of the test meant in some cases 
Containers could COMPLETE and then be removed before the test waiting to see 
complete would see them (it would be sleeping).  This resulted in a 
NullPointerException when it tried to look up relevant Container.    Since this 
was timing based it didn't occur each time.

The fix is to just not do that lookup each time through the while loop, as the 
Container object isn't being deleted but rather just moved.

> TestContainerManagerSecurity tests for Yarn Server are flakey
> -------------------------------------------------------------
>
>                 Key: YARN-6150
>                 URL: https://issues.apache.org/jira/browse/YARN-6150
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>            Reporter: Daniel Sturman
>         Attachments: YARN-6150.001.patch
>
>
> Repeated runs of 
> {{org.apache.hadoop.yarn.server.TestContainerManagedSecurity}} can either 
> pass or fail on repeated runs on the same codebase.  Also, the two runs (one 
> in secure mode, one without security) aren't well labeled in JUnit.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to