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

ASF GitHub Bot commented on YARN-11416:
---------------------------------------

p-szucs commented on code in PR #5320:
URL: https://github.com/apache/hadoop/pull/5320#discussion_r1087778061


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/converter/TestFSQueueConverter.java:
##########
@@ -440,28 +454,27 @@ public void testQueueOrderingPolicy() throws Exception {
     rootQueue = fs.getQueueManager().getRootQueue();
 
     converter.convertQueueHierarchy(rootQueue);
-
     // root
     assertEquals("root ordering policy", null,
-        csConfig.get(PREFIX + "root.ordering-policy"));
+        capacitySchedulerConfig.get(PREFIX + "root.ordering-policy"));

Review Comment:
   Could you please use the getAppOrderingPolicy() method to get the configs in 
this test case?





> FS2CS should use CapacitySchedulerConfiguration in FSQueueConverterBuilder 
> ---------------------------------------------------------------------------
>
>                 Key: YARN-11416
>                 URL: https://issues.apache.org/jira/browse/YARN-11416
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Benjamin Teke
>            Assignee: Susheel Gupta
>            Priority: Major
>              Labels: pull-request-available
>
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.converter.FSQueueConverter
>  and its builder stores the variable capacitySchedulerConfig as a simple 
> Configuration object instead of CapacitySchedulerConfiguration. This is 
> misleading, as capacitySchedulerConfig suggests that it is indeed a 
> CapacitySchedulerConfiguration and it loses access to the convenience methods 
> to check for various properties. Because of this every time a property getter 
> is changed FS2CS should be checked if it reimplemented the same, otherwise 
> there might be behaviour differences or even bugs.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to