Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12750

getRequestsCount() in ClusterStatus returns total number of request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.6, 2.0.0
    • 1.0.0, 0.98.10, 1.1.0
    • Client
    • None
    • Reviewed

    Description

      getRequestsCount() is a function in org.apache.hadoop.hbase.ClusterStatus in HBase Client compoent. The comment 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();

      Attachments

        1. HBASE-12750.patch
          0.7 kB
          Weichen Ye

        Activity

          People

            yeweichen Weichen Ye
            yeweichen Weichen Ye
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: