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 "Tao Jie (JIRA)" <ji...@apache.org> on 2017/03/02 14:32:45 UTC

[jira] [Comment Edited] (YARN-6249) TestFairSchedulerPreemption is inconsistently failing on trunk

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

Tao Jie edited comment on YARN-6249 at 3/2/17 2:32 PM:
-------------------------------------------------------

In the attached patch, I called update() explicitly between app1 is allocated and app2 is submitted, to ensure  {{minShareStarvation}} of root.preemptable.child-2 is refreshed.
[~yufeigu] [~kasha],  would you take a look at it? I ran 300 times of this case no failure, and 3 of 100 runs would failed without this patch. 


was (Author: tao jie):
In the attached patch, I called update() explicitly between app1 is allocated and before app2 is submitted, to ensure  {{minShareStarvation}} of root.preemptable.child-2 is refreshed.
[~yufeigu] [~kasha],  would you take a look at it? I ran 300 times of this case no failure, and 3 of 100 runs would failed without this patch. 

> TestFairSchedulerPreemption is inconsistently failing on trunk
> --------------------------------------------------------------
>
>                 Key: YARN-6249
>                 URL: https://issues.apache.org/jira/browse/YARN-6249
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: fairscheduler, resourcemanager
>    Affects Versions: 2.9.0
>            Reporter: Sean Po
>            Assignee: Yufei Gu
>         Attachments: YARN-6249.001.patch
>
>
> Tests in TestFairSchedulerPreemption.java will inconsistently fail on trunk. An example stack trace: 
> {noformat}
> Tests run: 24, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 24.879 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption
> testPreemptionSelectNonAMContainer[MinSharePreemptionWithDRF](org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption)  Time elapsed: 10.475 sec  <<< FAILURE!
> java.lang.AssertionError: Incorrect number of containers on the greedy app expected:<4> but was:<8>
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.failNotEquals(Assert.java:743)
> 	at org.junit.Assert.assertEquals(Assert.java:118)
> 	at org.junit.Assert.assertEquals(Assert.java:555)
> 	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption.verifyPreemption(TestFairSchedulerPreemption.java:288)
> 	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption.testPreemptionSelectNonAMContainer(TestFairSchedulerPreemption.java:363)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org