Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95F29D42B for ; Mon, 24 Jun 2013 20:50:22 +0000 (UTC) Received: (qmail 29925 invoked by uid 500); 24 Jun 2013 20:50:21 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 29293 invoked by uid 500); 24 Jun 2013 20:50:21 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 29276 invoked by uid 99); 24 Jun 2013 20:50:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 20:50:21 +0000 Date: Mon, 24 Jun 2013 20:50:21 +0000 (UTC) From: "Sandy Ryza (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9661) Allow metrics sources to be extended MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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