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 "Karthik Kambatla (JIRA)" <ji...@apache.org> on 2014/12/04 00:51:12 UTC

[jira] [Commented] (YARN-2921) MockRM#waitForState methods can be too slow and flaky

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

Karthik Kambatla commented on YARN-2921:
----------------------------------------

One way to handle this would be to (1) sleep for a smaller duration and (2) check for states matching the state provided or later ones. The other option is to either notify waiters when an app reaches a state, or capture all the states an app visits. 

> MockRM#waitForState methods can be too slow and flaky
> -----------------------------------------------------
>
>                 Key: YARN-2921
>                 URL: https://issues.apache.org/jira/browse/YARN-2921
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 2.6.0
>            Reporter: Karthik Kambatla
>
> MockRM#waitForState methods currently sleep for too long (2 seconds and 1 second). This leads to slow tests and sometimes failures if the App/AppAttempt moves to another state. 



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