[ https://issues.apache.org/jira/browse/YARN-11416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680557#comment-17680557 ]
ASF GitHub Bot commented on YARN-11416: --------------------------------------- susheel-gupta commented on code in PR #5320: URL: https://github.com/apache/hadoop/pull/5320#discussion_r1086487425 ########## 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: ########## @@ -149,20 +152,20 @@ public void testConvertQueueHierarchy() { converter.convertQueueHierarchy(rootQueue); // root children - assertEquals("root children", "admins,users,misc,default", - csConfig.get(PREFIX + "root.queues")); + assertEquals("root children", new String[]{"admins", "users", "misc", "default"}, Review Comment: I will update this with assertArrayEquals as I was unaware of assertEquals is deprecated for array. > 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 it's 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: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org