HBASE-12206 NPE in RSRpcServices
This commit is contained in:
parent
652b81ab1e
commit
7aa3a2d890
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue