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 "sandflee (JIRA)" <ji...@apache.org> on 2016/08/15 16:15:22 UTC

[jira] [Commented] (YARN-5521) TestCapacityScheduler#testKillAllAppsInQueue fails randomly

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

sandflee commented on YARN-5521:
--------------------------------

thanks [~bibinchundatt], seems caused by app went to KILLED state, but APP_ATTEMPT_REMOVED event not processed by scheduler dispatcher. this could simple fixed by 
{code}
    rm.waitForState(app.getApplicationId(), RMAppState.KILLED);
    rm.waitForAppRemovedFromScheduler(app.getApplicationId());
    appsInRoot = scheduler.getAppsInQueue("root");
{code}
and YARN-5375 introduce a more general way , cc [~sunilg] [~rohithsharma]

> TestCapacityScheduler#testKillAllAppsInQueue fails randomly
> -----------------------------------------------------------
>
>                 Key: YARN-5521
>                 URL: https://issues.apache.org/jira/browse/YARN-5521
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Varun Saxena
>            Assignee: sandflee
>         Attachments: Failure.txt
>
>
> {noformat}
> Running org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler
> Tests run: 49, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 35.922 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler
> testKillAllAppsInQueue(org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler)  Time elapsed: 0.146 sec  <<< FAILURE!
> java.lang.AssertionError: null
>         at org.junit.Assert.fail(Assert.java:86)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at org.junit.Assert.assertTrue(Assert.java:52)
>         at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler.testKillAllAppsInQueue(TestCapacityScheduler.java:2188)
> Results :
> Failed tests:
>   TestCapacityScheduler.testKillAllAppsInQueue:2188 null
> Tests run: 49, Failures: 1, Errors: 0, Skipped: 0
> {noformat}



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

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