hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masatake Iwasaki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2871) TestRMRestart#testRMRestartGetApplicationList sometime fails in trunk
Date Tue, 23 Jun 2015 17:12:01 GMT

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

Masatake Iwasaki commented on YARN-2871:
----------------------------------------

Thanks for working on this, [~zxu]! These intermittent test failures annoyed me these days.

{code}
980	    Thread.sleep(1000);
{code}

Is it possible to use {{MockRM#waitForState}} to wait for the application state is recovered?
Sleeping fixed time is not certain and it makes test time longer unnecessary, though there
are many lines calling Thread#sleep in the test...

> TestRMRestart#testRMRestartGetApplicationList sometime fails in trunk
> ---------------------------------------------------------------------
>
>                 Key: YARN-2871
>                 URL: https://issues.apache.org/jira/browse/YARN-2871
>             Project: Hadoop YARN
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: zhihai xu
>            Priority: Minor
>         Attachments: YARN-2871.000.patch
>
>
> From trunk build #746 (https://builds.apache.org/job/Hadoop-Yarn-trunk/746):
> {code}
> Failed tests:
>   TestRMRestart.testRMRestartGetApplicationList:957
> rMAppManager.logApplicationSummary(
>     isA(org.apache.hadoop.yarn.api.records.ApplicationId)
> );
> Wanted 3 times:
> -> at org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart.testRMRestartGetApplicationList(TestRMRestart.java:957)
> But was 2 times:
> -> at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.handle(RMAppManager.java:66)
> {code}



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

Mime
View raw message