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

sandflee commented on YARN-5362:
--------------------------------

update a patch to add drainEvents() before asserts,  there had a very little 
race condition since drainEvents() just grant there are no event in event 
queue, not grant event are processed completely.

> TestRMRestart#testFinishedAppRemovalAfterRMRestart can fail
> -----------------------------------------------------------
>
>                 Key: YARN-5362
>                 URL: https://issues.apache.org/jira/browse/YARN-5362
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Jason Lowe
>            Assignee: sandflee
>         Attachments: YARN-5362.01.patch
>
>
> Saw the following in a precommit build that only changed an unrelated unit 
> test:
> {noformat}
> Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 101.265 sec 
> <<< FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart
> testFinishedAppRemovalAfterRMRestart(org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart)
>   Time elapsed: 0.411 sec  <<< FAILURE!
> java.lang.AssertionError: expected null, but 
> was:<org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl@70ebeeba>
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.failNotNull(Assert.java:664)
>       at org.junit.Assert.assertNull(Assert.java:646)
>       at org.junit.Assert.assertNull(Assert.java:656)
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart.testFinishedAppRemovalAfterRMRestart(TestRMRestart.java:1653)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to