[ https://issues.apache.org/jira/browse/YARN-10506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248989#comment-17248989 ]
zhuqi commented on YARN-10506: ------------------------------ [~wangda] {quote}Handle convert of dynamic queue to static queue (still see some test failures). {quote} The test failed because some mistakes queue name , should change to this: {code:java} // Do change 2nd level queue from dynamic to static csConf.setQueues("root", new String[] { "a", "b", "c-auto", "e" }); csConf.setNonLabeledQueueWeight("root.e", 6f); csConf.setQueues("root.e", new String[] { "e1-auto" }); csConf.setNonLabeledQueueWeight("root.e.e1-auto", 6f); cs.reinitialize(csConf, mockRM.getRMContext()); // Get queue c CSQueue e1 = cs.getQueue("root.e.e1-auto"); // e's abs resource should be 6/20 * (6/7), (since a/c/e.weight=6, all other 2 peers // have weight=1, and e1's weight is 6, e2's weight is 1). Assert.assertEquals((6 / 20f) * (6 / 7f), e1.getAbsoluteCapacity(), 1e-6); Assert.assertEquals(360 * GB, c.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize()); Assert.assertEquals(6f, c.getQueueCapacities().getWeight(), 1e-6); {code} > Update queue creation logic to use weight mode and allow the flexible > static/dynamic creation > --------------------------------------------------------------------------------------------- > > Key: YARN-10506 > URL: https://issues.apache.org/jira/browse/YARN-10506 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Benjamin Teke > Priority: Major > Attachments: YARN-10506.001.patch > > > The queue creation logic should be updated to use weight mode and support the > flexible creation. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org