You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Weichen Ye (JIRA)" <ji...@apache.org> on 2014/12/23 14:00:17 UTC

[jira] [Created] (HBASE-12750) getRequestsCount() in ClusterStatus return total number of request

Weichen Ye created HBASE-12750:
----------------------------------

             Summary: 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: 0.98.6, 2.0.0
            Reporter: Weichen Ye


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)