hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-6814) TestNMClient fails if container completes before it is killed
Date Wed, 12 Jul 2017 15:36:00 GMT

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

Jason Lowe commented on YARN-6814:
----------------------------------

Sample stacktrace:
{noformat}
java.lang.AssertionError: 4: 
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.apache.hadoop.yarn.client.api.impl.TestNMClient.testGetContainerStatus(TestNMClient.java:397)
	at org.apache.hadoop.yarn.client.api.impl.TestNMClient.testContainerManagement(TestNMClient.java:360)
	at org.apache.hadoop.yarn.client.api.impl.TestNMClient.testNMClient(TestNMClient.java:227)
{noformat}

The unit test needs to ensure the container does not complete before the kill request is processed.

> TestNMClient fails if container completes before it is killed
> -------------------------------------------------------------
>
>                 Key: YARN-6814
>                 URL: https://issues.apache.org/jira/browse/YARN-6814
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.8.1
>            Reporter: Jason Lowe
>
> TestNMClient#testContainerManagement launches degenerate containers and verifies the
diagnostics are appropriate when it is killed.  However if the container launch process races
ahead and the degenerate container completes before it is killed then the diagnostics are
for a successful container rather than a killed container and the unit test fails.



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