[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to