hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil G (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5317) testAMRestartNotLostContainerCompleteMsg may fail
Date Tue, 12 Jul 2016 14:56:22 GMT

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

Sunil G commented on YARN-5317:
-------------------------------

Yes. We have faced this problem in few HA tests and in priority test cases. 
Ideally its better to ensure that the attempt is in SCHEDULED state before sending node heartbeat.
{{MockRM#launchAM}} will wrap this whole thing and it may be more better. Sample code

{code}
    MockAM am2 = MockRM.launchAM(app2, rm, nm1);
    am2.registerAppAttempt();
{code}

> testAMRestartNotLostContainerCompleteMsg may fail
> -------------------------------------------------
>
>                 Key: YARN-5317
>                 URL: https://issues.apache.org/jira/browse/YARN-5317
>             Project: Hadoop YARN
>          Issue Type: Test
>            Reporter: sandflee
>            Assignee: sandflee
>            Priority: Minor
>         Attachments: YARN-5317.01.patch
>
>
> java.lang.Exception: test timed out after 30000 milliseconds
> 	at java.lang.Thread.sleep(Native Method)
> 	at org.apache.hadoop.yarn.server.resourcemanager.MockRM.waitForState(MockRM.java:261)
> 	at org.apache.hadoop.yarn.server.resourcemanager.MockRM.waitForState(MockRM.java:225)
> 	at org.apache.hadoop.yarn.server.resourcemanager.MockRM.waitForState(MockRM.java:207)
> 	at org.apache.hadoop.yarn.server.resourcemanager.MockRM.sendAMLaunched(MockRM.java:746)
> 	at org.apache.hadoop.yarn.server.resourcemanager.applicationsmanager.TestAMRestart.testAMRestartNotLostContainerCompleteMsg(TestAMRestart.java:841)
> see https://builds.apache.org/job/PreCommit-YARN-Build/12204/testReport/org.apache.hadoop.yarn.server.resourcemanager.applicationsmanager/TestAMRestart/testAMRestartNotLostContainerCompleteMsg/



--
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


Mime
View raw message