[
https://issues.apache.org/jira/browse/HADOOP-9661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13692361#comment-13692361
]
Sandy Ryza commented on HADOOP-9661:
------------------------------------
I verified that this works correctly by applying my fair scheduler queue
metrics changes and observing that both the superclass and subclass metrics
appear in a pseudo-distributed cluster. Also, for posterity, the reason we are
writing our own getDeclaredFieldsIncludingInherited is that Class#getFields
only returns public fields and Class#getDeclaredFields returns all fields, but
not inherited fields.
> Allow metrics sources to be extended
> ------------------------------------
>
> Key: HADOOP-9661
> URL: https://issues.apache.org/jira/browse/HADOOP-9661
> Project: Hadoop Common
> Issue Type: Improvement
> Components: metrics
> Affects Versions: 2.0.5-alpha
> Reporter: Sandy Ryza
> Assignee: Sandy Ryza
> Attachments: HADOOP-9661.patch
>
>
> My use case is to create an FSQueueMetrics that extends QueueMetrics and
> includes some additional fair-scheduler-specific information.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira