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, // If checkOpen failed, server not running or filesystem gone,
// cancel this lease; filesystem is gone or we're closing or something. // cancel this lease; filesystem is gone or we're closing or something.
if (scannerName != null) { if (scannerName != null) {
try { LOG.debug("Server shutting down and client tried to access missing scanner "
regionServer.leases.cancelLease(scannerName); + scannerName);
} catch (LeaseException le) { if (regionServer.leases != null) {
LOG.info("Server shutting down and client tried to access missing scanner " + try {
scannerName); regionServer.leases.cancelLease(scannerName);
} catch (LeaseException le) {
// No problem, ignore
}
} }
} }
throw e; throw e;