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 BBC9411C6F for ; Fri, 13 Jun 2014 22:58:02 +0000 (UTC) Received: (qmail 37190 invoked by uid 500); 13 Jun 2014 22:58:02 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 37143 invoked by uid 500); 13 Jun 2014 22:58:02 -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 37131 invoked by uid 99); 13 Jun 2014 22:58:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 22:58:02 +0000 Date: Fri, 13 Jun 2014 22:58:01 +0000 (UTC) From: "Tsuyoshi OZAWA (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10673) Update rpc metrics when the call throws an exception 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-10673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031302#comment-14031302 ] Tsuyoshi OZAWA commented on HADOOP-10673: ----------------------------------------- [~mingma], thank you for the suggestion. I think this improvement is useful, too. One minor comment: both {{rpcMetrics}} and {{rpcDetailedMetrics}} are not final field, so how about adding null check before accessing them? {code} + server.rpcMetrics.addRpcQueueTime(qTime); + server.rpcMetrics.addRpcProcessingTime(processingTime); + server.rpcDetailedMetrics.addProcessingTime(detailedMetricsName, + processingTime); {code} {code} protected RpcMetrics rpcMetrics; protected RpcDetailedMetrics rpcDetailedMetrics; {code} > Update rpc metrics when the call throws an exception > ---------------------------------------------------- > > Key: HADOOP-10673 > URL: https://issues.apache.org/jira/browse/HADOOP-10673 > Project: Hadoop Common > Issue Type: Bug > Reporter: Ming Ma > Assignee: Ming Ma > Attachments: HADOOP-10673-2.patch, HADOOP-10673-4.patch, HADOOP-10673.patch > > > Currently RPC metrics isn't updated when the call throws an exception. We can either update the existing metrics or have a new set of metrics in the case of exception. -- This message was sent by Atlassian JIRA (v6.2#6252)