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

Varun Saxena commented on YARN-5491:
------------------------------------

Changes look fine to me. IMO, draining events is not really required for this 
test to pass. Extra schedule after first container expiry should suffice.
Basically issue will come, if the containers which have been expired in the 
test(i.e. containers ending in 10 and 11) have both been assigned on the same 
node. And the other node has no resources left (due to other container 
allocations).
One schedule will mean only one of the stuck containers is scheduled (as its 
off switch).

So calling schedule after each expiry should fix the issue.

Will commit it later today.



> Random Failure TestCapacityScheduler#testCSQueueBlocked
> -------------------------------------------------------
>
>                 Key: YARN-5491
>                 URL: https://issues.apache.org/jira/browse/YARN-5491
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>         Attachments: Failure-TestCapacityScheduler-output.txt, 
> Sucess-TestCapacityScheduler-output.txt, YARN-5491.0001.patch
>
>
> Random testcase failure in trunk for 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler.testCSQueueBlocked
> https://builds.apache.org/job/PreCommit-YARN-Build/12694/testReport/org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity/TestCapacityScheduler/testCSQueueBlocked/
> {noformat}
> java.lang.AssertionError: B Used Resource should be 12 GB expected:<12288> 
> but was:<11264>
>       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.capacity.TestCapacityScheduler.testCSQueueBlocked(TestCapacityScheduler.java:3667)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to