[ https://issues.apache.org/jira/browse/YARN-9766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912532#comment-16912532 ]
Manikandan R commented on YARN-9766: ------------------------------------ While constructing Queue objects, it makes use of {{old}}, does null check and use {{getMetrics}} if it is possible. Below piece of code is not letting to create metrics for "root.a.d.b" as "root.a.b" has been generated before. I think checking equality using getQueuePath() in addition to "null" check helps to differentiate these two different paths. cc [~eepayne] [~sunilg] {code} this.metrics = old != null ? (CSQueueMetrics) old.getMetrics() : CSQueueMetrics.forQueue(getQueuePath(), parent, cs.getConfiguration().getEnableUserMetrics(), cs.getConf()); {code} [~tarunparimi] Can I take it forward? > YARN CapacityScheduler QueueMetrics has missing metrics for parent queues > having same name > ------------------------------------------------------------------------------------------ > > Key: YARN-9766 > URL: https://issues.apache.org/jira/browse/YARN-9766 > Project: Hadoop YARN > Issue Type: Bug > Affects Versions: 2.7.0 > Reporter: Tarun Parimi > Assignee: Tarun Parimi > Priority: Major > > In Capacity Scheduler, we enforce Leaf Queues to have unique names. But it is > not the case for Parent Queues. For example, we can have the below queue > hierarchy, where "b" is the queue name for two different queue paths root.a.b > and root.a.d.b . Since it is not a leaf queue this configuration works and > apps run fine in the leaf queues 'c' and 'e'. > * root > ** a > *** b > **** c > *** d > **** b > ***** e > But the jmx metrics does not show the metrics for the parent queue > "root.a.d.b" . We can see metrics only for "root.a.b" queue. > -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org