[branch-2] Amend HBASE-26731 Add metrics for active and expired scanners
Compliation fixes Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
fc92a00bd1
commit
961796a59e
|
@ -663,7 +663,7 @@ class MetricsRegionServerWrapperImpl
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getActiveScanners() {
|
public int getActiveScanners() {
|
||||||
return regionServer.getRpcServices().getScannersCount();
|
return regionServer.getRSRpcServices().getScannersCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -534,7 +534,7 @@ public class RSRpcServices implements HBaseRPCErrorHandler, AdminService.Blockin
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG.info("Scanner lease {} expired {}", this.scannerName, rsh);
|
LOG.info("Scanner lease {} expired {}", this.scannerName, rsh);
|
||||||
server.getMetrics().incrScannerLeaseExpired();
|
regionServer.getMetrics().incrScannerLeaseExpired();
|
||||||
RegionScanner s = rsh.s;
|
RegionScanner s = rsh.s;
|
||||||
HRegion region = null;
|
HRegion region = null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue