Skip to content

Commit

Permalink
HBASE-22270. master's jmx.clusterRequests could be negative in branch…
Browse files Browse the repository at this point in the history
…-1 (#164)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
  • Loading branch information
puleya77 authored and apurtell committed Apr 24, 2019
1 parent cd6d643 commit 8f658e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ ClusterStatusProtos.ServerLoad buildServerLoad(long reportStartTime, long report
ClusterStatusProtos.ServerLoad.Builder serverLoad =
ClusterStatusProtos.ServerLoad.newBuilder();
serverLoad.setNumberOfRequests((int) regionServerWrapper.getRequestsPerSecond());
serverLoad.setTotalNumberOfRequests((int) regionServerWrapper.getTotalRequestCount());
serverLoad.setTotalNumberOfRequests(regionServerWrapper.getTotalRequestCount());
serverLoad.setUsedHeapMB((int)(usedMemory / 1024 / 1024));
serverLoad.setMaxHeapMB((int) (maxMemory / 1024 / 1024));
Set<String> coprocessors = getWAL(null).getCoprocessorHost().getCoprocessors();
Expand Down

0 comments on commit 8f658e2

Please sign in to comment.