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:
parent
76858cf367
commit
edc30fc950
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue