Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80D3CC062 for ; Tue, 23 Dec 2014 13:04:13 +0000 (UTC) Received: (qmail 32766 invoked by uid 500); 23 Dec 2014 13:04:13 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 32716 invoked by uid 500); 23 Dec 2014 13:04:13 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 32705 invoked by uid 99); 23 Dec 2014 13:04:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 13:04:13 +0000 Date: Tue, 23 Dec 2014 13:04:13 +0000 (UTC) From: "Weichen Ye (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-12750) getRequestsCount() in ClusterStatus return total number of request 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/HBASE-12750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Weichen Ye updated HBASE-12750: ------------------------------- Attachment: HBASE-12750.patch > getRequestsCount() in ClusterStatus return total number of request > ------------------------------------------------------------------ > > Key: HBASE-12750 > URL: https://issues.apache.org/jira/browse/HBASE-12750 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 2.0.0, 0.98.6 > Reporter: Weichen Ye > Attachments: HBASE-12750.patch > > > getRequestsCount() is a function in org.apache.hadoop.hbase.ClusterStatus in HBase Client compoenet. Its comments says that it is for us to get the number of requests since last report, but the code inside this function return the number of requests since region server start. > Here we should change the code > count += e.getValue().getTotalNumberOfRequests(); > to > count += e.getValue().getNumberOfRequests(); -- This message was sent by Atlassian JIRA (v6.3.4#6332)