HBASE-12750 getRequestsCount() in ClusterStatus returns total number of request (Weichen Ye)
This commit is contained in:
parent
8eed26fc3c
commit
59f93e2384
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue