hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7044) TestContainerAllocation#testAMContainerAllocationWhenDNSUnavailable fails on trunk
Date Wed, 04 Oct 2017 07:42:00 GMT

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

Akira Ajisaka commented on YARN-7044:
-------------------------------------

{code}
      while (numRetries <= 5) {
        nm1.nodeHeartbeat(true);
        Thread.sleep(1000);
        Assert.assertEquals(RMAppAttemptState.SCHEDULED,
            attempt.getAppAttemptState());
        System.out.println("Waiting for am container to be allocated.");
      }
{code}
In the above test code, {{numRetries}} is never incremented and it becomes infinite loop.
{{TestRMSecretManagerService#createContainerToken}} overrides {{RMContainerTokenSecretManager#createContainerToken}}
and increments {{numRetries}}, however, a new method signature of {{createContainerToken}}
with {{ExecutionType}} was added by YARN-5978 and the overriding method was not executed.
The 001 patch updated the method signature to increment {{numRetries}} correctly.

> TestContainerAllocation#testAMContainerAllocationWhenDNSUnavailable fails on trunk
> ----------------------------------------------------------------------------------
>
>                 Key: YARN-7044
>                 URL: https://issues.apache.org/jira/browse/YARN-7044
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: capacity scheduler, test
>    Affects Versions: 3.0.0-beta1
>            Reporter: Wangda Tan
>            Assignee: Akira Ajisaka
>         Attachments: YARN-7044.001.patch
>
>
> {code}
> Failed
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestContainerAllocation.testAMContainerAllocationWhenDNSUnavailable
> Failing for the past 2 builds (Since Failed#16961 )
> Took 30 sec.
> Error Message
> test timed out after 30000 milliseconds
> Stacktrace
> java.lang.Exception: test timed out after 30000 milliseconds
> 	at java.lang.Thread.sleep(Native Method)
> 	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestContainerAllocation.testAMContainerAllocationWhenDNSUnavailable(TestContainerAllocation.java:330)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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