You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2017/06/21 23:19:00 UTC

[jira] [Updated] (YARN-5876) TestResourceTrackerService#testGracefulDecommissionWithApp fails intermittently on trunk

     [ https://issues.apache.org/jira/browse/YARN-5876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Kanter updated YARN-5876:
--------------------------------
    Attachment: YARN-5876.001.patch

This was a hard one to reproduce - I was only able to by inserting some sleeps in the right places.  It turns out that there's a very small period of time while a decommissioning node is being moved from {{nodes}} to {{inactiveNodes}} where the node is in neither map (because it's being moved).  If the timing works out just perfectly, {{MockRM}} tries to get the node during that window, and can't find it, resulting in {{null}}.

The patch fixes the problem by including retries for finding the node as part of the timeout in {{MockRM#waitForState}}, instead of the original code that only tried once.

> TestResourceTrackerService#testGracefulDecommissionWithApp fails intermittently on trunk
> ----------------------------------------------------------------------------------------
>
>                 Key: YARN-5876
>                 URL: https://issues.apache.org/jira/browse/YARN-5876
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Varun Saxena
>            Assignee: Robert Kanter
>         Attachments: YARN-5876.001.patch
>
>
> {noformat}
> java.lang.AssertionError: node shouldn't be null
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertNotNull(Assert.java:621)
> 	at org.apache.hadoop.yarn.server.resourcemanager.MockRM.waitForState(MockRM.java:750)
> 	at org.apache.hadoop.yarn.server.resourcemanager.TestResourceTrackerService.testGracefulDecommissionWithApp(TestResourceTrackerService.java:318)
> {noformat}
> Refer to https://builds.apache.org/job/PreCommit-YARN-Build/13884/testReport/



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