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

Zian Chen commented on YARN-8005:
---------------------------------

Hi [~sunilg], the strange thing is I run the test in my local environment and I 
got a different result. The test passed with no issue. More specifically, the 
logs shown in the latest test report indicate "total 0 containers selected to 
be preempted" at the end of the log trace. That's why the test failed in test 
report here. However, here is what I got in my local environment,
{code:java}
ProportionalCapacityPreemptionPolicy.java:containerBasedPreemptOrKill(461)) - 
So far, total 2 containers selected to be preempted
2018-04-20 14:26:57,787 DEBUG [main] 
capacity.ProportionalCapacityPreemptionPolicy 
(ProportionalCapacityPreemptionPolicy.java:logToCSV(607)) -  QUEUESTATE: 0, a1, 
10, 30, 30, 20, 10, 20, 10, 21, 0, 9, 0, 9, a2, 10, 10, 30, 80, 40, 80, 40, 80, 
0, 0, 0, 0, b1, 20, 40, 20, 70, 20, 40, 20, 40, 0, 0, 0, 0, b2, 60, 120, 20, 
30, 30, 60, 30, 61, 30, 59, 30, 59
2018-04-20 14:26:57,788 DEBUG [main] 
capacity.ProportionalCapacityPreemptionPolicy 
(ProportionalCapacityPreemptionPolicy.java:preemptOrkillSelectedContainerAfterWait(314))
 - Starting to preempt containers for selectedCandidates and size:1
2018-04-20 14:26:57,788 DEBUG [main] 
capacity.ProportionalCapacityPreemptionPolicy 
(ProportionalCapacityPreemptionPolicy.java:preemptOrkillSelectedContainerAfterWait(324))
 - Send to scheduler: in app=appattempt_0_0004_000001 
#containers-to-be-preemptionCandidates=2
2018-04-20 14:26:57,791 DEBUG [main] 
capacity.ProportionalCapacityPreemptionPolicy 
(ProportionalCapacityPreemptionPolicy.java:editSchedule(306)) - Total time 
used=0 ms.
{code}
I'm a little confused what's the reason for the test report failure here. Could 
you help me check this? Thanks

> Add unit tests for queue priority with dominant resource calculator  
> ---------------------------------------------------------------------
>
>                 Key: YARN-8005
>                 URL: https://issues.apache.org/jira/browse/YARN-8005
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Sumana Sathish
>            Assignee: Zian Chen
>            Priority: Critical
>         Attachments: YARN-8005.001.patch, YARN-8005.002.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to