HBASE-12750 getRequestsCount() in ClusterStatus returns total number of request (Weichen Ye)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9403a1b6 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9403a1b6 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9403a1b6 Branch: refs/heads/branch-1.0 Commit: 9403a1b640eda5f292a5bcd2594f37f986802618 Parents: 15c4381 Author: tedyu <[email protected]> Authored: Tue Dec 23 10:26:49 2014 -0800 Committer: Enis Soztutar <[email protected]> Committed: Fri Jan 2 17:13:46 2015 -0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/ClusterStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/9403a1b6/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java index 7599e3e..40fcfcf 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java @@ -160,7 +160,7 @@ public class ClusterStatus extends VersionedWritable { public int getRequestsCount() { int count = 0; for (Map.Entry<ServerName, ServerLoad> e: this.liveServers.entrySet()) { - count += e.getValue().getTotalNumberOfRequests(); + count += e.getValue().getNumberOfRequests(); } return count; }
