HBASE-12206 NPE in RSRpcServices

This commit is contained in:
Jimmy Xiang 2014-10-08 09:26:13 -07:00
parent 652b81ab1e
commit 7aa3a2d890
1 changed files with 8 additions and 5 deletions

View File

@ -1953,11 +1953,14 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
// If checkOpen failed, server not running or filesystem gone,
// cancel this lease; filesystem is gone or we're closing or something.
if (scannerName != null) {
LOG.debug("Server shutting down and client tried to access missing scanner "
+ scannerName);
if (regionServer.leases != null) {
try {
regionServer.leases.cancelLease(scannerName);
} catch (LeaseException le) {
LOG.info("Server shutting down and client tried to access missing scanner " +
scannerName);
// No problem, ignore
}
}
}
throw e;