Bryan Beaudreault created HBASE-28396: -----------------------------------------
Summary: Quota throttling can cause a leak of scanners Key: HBASE-28396 URL: https://issues.apache.org/jira/browse/HBASE-28396 Project: HBase Issue Type: Bug Reporter: Bryan Beaudreault In RSRpcServices.scan, we check the quota after having created a new RegionScannerHolder. If the quota is exceeded, an exception will be thrown. In this case, we can't send the scannerName back to the client because it's just an exception. So the client will be forced to retry the openScanner call, but the RegionScannerHolder is not closed. Eventually the scanners will be cleaned up by the lease expiration, but this could cause many scanners to leak during periods of high throttling. We could close the newly opened scanner before throwing the throttle exception, but I think it's better to not open the scanner at all until we've grabbed some quota. -- This message was sent by Atlassian Jira (v8.20.10#820010)