[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:
Andrew Purtell 2022-03-04 14:11:31 -08:00
parent fc92a00bd1
commit 961796a59e
2 changed files with 2 additions and 2 deletions

View File

@ -663,7 +663,7 @@ class MetricsRegionServerWrapperImpl
@Override
public int getActiveScanners() {
return regionServer.getRpcServices().getScannersCount();
return regionServer.getRSRpcServices().getScannersCount();
}
/**

View File

@ -534,7 +534,7 @@ public class RSRpcServices implements HBaseRPCErrorHandler, AdminService.Blockin
return;
}
LOG.info("Scanner lease {} expired {}", this.scannerName, rsh);
server.getMetrics().incrScannerLeaseExpired();
regionServer.getMetrics().incrScannerLeaseExpired();
RegionScanner s = rsh.s;
HRegion region = null;
try {