[
https://issues.apache.org/jira/browse/YARN-8004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448646#comment-16448646
]
Zian Chen commented on YARN-8004:
---------------------------------
Hi [~eepayne] , Please allow me to explain here a little bit. The tests which
extends ProportionalCapacityPreemptionPolicyMockFramework were not use
DefaultResourceCalculator by default. There is a config to enable/disable DRF
in the Unit test which is the last parameter in method buildEnv. The related
code is below,
{code:java}
// code placeholder
public void buildEnv(String labelsConfig, String nodesConfig,
String queuesConfig, String appsConfig,
boolean useDominantResourceCalculator) throws IOException {
if (useDominantResourceCalculator) {
when(cs.getResourceCalculator()).thenReturn(
new DominantResourceCalculator());
}
{code}
So when we set the last parameter to true, we will use DRF calculator.
> Add unit tests for inter queue preemption for dominant resource calculator
> --------------------------------------------------------------------------
>
> Key: YARN-8004
> URL: https://issues.apache.org/jira/browse/YARN-8004
> Project: Hadoop YARN
> Issue Type: Bug
> Components: yarn
> Reporter: Sumana Sathish
> Assignee: Zian Chen
> Priority: Critical
> Attachments: YARN-8004.001.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]