HBASE-22270. master's jmx.clusterRequests could be negative in branch-1 (#164)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Puleya7 2019-04-25 05:18:59 +08:00 committed by Andrew Purtell
parent 76858cf367
commit edc30fc950
1 changed files with 1 additions and 1 deletions

View File

@ -1279,7 +1279,7 @@ public class HRegionServer extends HasThread implements
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();