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 419CCD5F3 for ; Thu, 6 Dec 2012 21:53:10 +0000 (UTC) Received: (qmail 45595 invoked by uid 500); 6 Dec 2012 21:53:10 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 45522 invoked by uid 500); 6 Dec 2012 21:53:09 -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 45513 invoked by uid 99); 6 Dec 2012 21:53:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 21:53:09 +0000 Date: Thu, 6 Dec 2012 21:53:09 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-9090) Support on-demand publish of metrics 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-9090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas updated HADOOP-9090: ------------------------------------ Fix Version/s: 1.2.0 I committed this patch to branch-1 as well. > Support on-demand publish of metrics > ------------------------------------ > > Key: HADOOP-9090 > URL: https://issues.apache.org/jira/browse/HADOOP-9090 > Project: Hadoop Common > Issue Type: New Feature > Components: metrics > Reporter: Mostafa Elhemali > Assignee: Mostafa Elhemali > Priority: Minor > Fix For: 1.2.0, 2.0.3-alpha > > Attachments: HADOOP-9090.2.patch, HADOOP-9090.branch-1.patch, HADOOP-9090.branch-1.patch, HADOOP-9090.justEnhanceDefaultImpl.2.patch, HADOOP-9090.justEnhanceDefaultImpl.3.patch, HADOOP-9090.justEnhanceDefaultImpl.4.patch, HADOOP-9090.justEnhanceDefaultImpl.5.patch, HADOOP-9090.justEnhanceDefaultImpl.6.patch, HADOOP-9090.justEnhanceDefaultImpl.7.patch, HADOOP-9090.justEnhanceDefaultImpl.8.patch, HADOOP-9090.justEnhanceDefaultImpl.9.patch, HADOOP-9090.justEnhanceDefaultImpl.patch, HADOOP-9090.patch > > > Updated description based on feedback: > We have a need to publish metrics out of some short-living processes, which is not really well-suited to the current metrics system implementation which periodically publishes metrics asynchronously (a behavior that works great for long-living processes). Of course I could write my own metrics system, but it seems like such a waste to rewrite all the awesome code currently in the MetricsSystemImpl and supporting classes. > The way this JIRA solves this problem is adding a new method publishMetricsNow() to the MetricsSystemImpl() class, that does a synchronous out-of-band push of the metrics from the sources to the sink. I also add a method to MetricsSinkAdapter (putMetricsImmediate) to support that change. -- 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