[ https://issues.apache.org/jira/browse/YARN-2869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236746#comment-14236746 ]
Hudson commented on YARN-2869: ------------------------------ FAILURE: Integrated in Hadoop-Yarn-trunk #766 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/766/]) YARN-2869. CapacityScheduler should trim sub queue names when parse configuration. Contributed by Wangda Tan (jianhe: rev e69af836f34f16fba565ab112c9bf0d367675b16) * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacitySchedulerConfiguration.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestQueueParsing.java > CapacityScheduler should trim sub queue names when parse configuration > ---------------------------------------------------------------------- > > Key: YARN-2869 > URL: https://issues.apache.org/jira/browse/YARN-2869 > Project: Hadoop YARN > Issue Type: Bug > Components: capacityscheduler, resourcemanager > Reporter: Wangda Tan > Assignee: Wangda Tan > Fix For: 2.7.0 > > Attachments: YARN-2869-1.patch, YARN-2869-2.patch, YARN-2869-3.patch > > > Currently, capacity scheduler doesn't trim sub queue name when parsing queue > names, for example, the configuration > {code} > <configuration> > <property> > <name>...root.queues</name> > <value> a, b , c</value> > </property> > <property> > <name>...root.b.capacity</name> > <value>100</value> > </property> > > ....... > </property> > {code} > Will fail with error: > {code} > java.lang.IllegalArgumentException: Illegal capacity of -1.0 for queue root. > a > at > org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration.getCapacity(CapacitySchedulerConfiguration.java:332) > at > org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.getCapacityFromConf(LeafQueue.java:196) > .... > {code} > It will try to find a queues with name " a", " b ", and " c", which is > apparently wrong, we should do trimming on these sub queue names. -- This message was sent by Atlassian JIRA (v6.3.4#6332)