[ https://issues.apache.org/jira/browse/YARN-6741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088465#comment-16088465 ]
Naganarasimha G R commented on YARN-6741: ----------------------------------------- Thanks [~wangda], for looking into this issue. Have updated the description, and below is the exception trace when only the testcase is run. {code} 2017-07-15 10:39:24,483 INFO [main] capacity.ParentQueue (ParentQueue.java:reinitialize(335)) - root: re-configured queue: a: numChildQueue= 2, capacity=0.105, absoluteCapacity=0.105, usedResources=<memory:0, vCores:0>usedCapacity=0.0, numApps=0, numContainers=0 java.io.IOException: Failed to re-init queues : Trying to reinitialize root.b from root.b at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.reinitialize(CapacityScheduler.java:405) at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler.testRefreshQueuesWithAllChildQueuesDeleted(TestCapacityScheduler.java:4584) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} > Deleting all children of a Parent Queue on refresh throws exception > ------------------------------------------------------------------- > > Key: YARN-6741 > URL: https://issues.apache.org/jira/browse/YARN-6741 > Project: Hadoop YARN > Issue Type: Sub-task > Components: capacity scheduler > Affects Versions: 3.0.0-alpha3 > Reporter: Naganarasimha G R > Assignee: Naganarasimha G R > Attachments: YARN-6741.001.patch, YARN-6741.002.patch > > > If we configure CS such that all children of a parent queue are deleted and > made as a leaf queue, then {{refreshQueue}} operation fails when > re-initializing the parent Queue > {code} > // Sanity check > if (!(newlyParsedQueue instanceof ParentQueue) || !newlyParsedQueue > .getQueuePath().equals(getQueuePath())) { > throw new IOException( > "Trying to reinitialize " + getQueuePath() + " from " > + newlyParsedQueue.getQueuePath()); > } > {code} > *Expected Behavior:* > Converting a Parent Queue to leafQueue on refreshQueue needs to be supported. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org