HBASE-926 NPE throwing RetriesExhaustedException
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/branches/0.18@704642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cc6c62bc20
commit
47e17e0007
|
@ -9,6 +9,8 @@ Release 0.18.1 - Unreleased
|
|||
HBASE-918 Region balancing during startup makes cluster unstable
|
||||
HBASE-921 region close and open processed out of order; makes for
|
||||
disagreement between master and regionserver on region state
|
||||
HBASE-925 HRS NPE on way out if no master to connect to
|
||||
HBASE-928 NPE throwing RetriesExhaustedException
|
||||
|
||||
Release 0.18.0 - September 21st, 2008
|
||||
|
||||
|
|
|
@ -68,9 +68,6 @@ public abstract class ServerCallable<T> implements Callable<T> {
|
|||
|
||||
/** @return the region name */
|
||||
public byte[] getRegionName() {
|
||||
if (location == null) {
|
||||
return null;
|
||||
}
|
||||
return location.getRegionInfo().getRegionName();
|
||||
}
|
||||
|
||||
|
|
|
@ -446,8 +446,10 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
|
|||
if (this.fsOk) {
|
||||
// Only try to clean up if the file system is available
|
||||
try {
|
||||
this.log.close();
|
||||
LOG.info("On abort, closed hlog");
|
||||
if (this.log != null) {
|
||||
this.log.close();
|
||||
LOG.info("On abort, closed hlog");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOG.error("Unable to close log in abort",
|
||||
RemoteExceptionHandler.checkIOException(e));
|
||||
|
|
Loading…
Reference in New Issue