HBASE-3867 when cluster is stopped and server which hosted meta region is

removed from cluster, master breaks down after restarting cluster.


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1143586 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-07-06 22:27:37 +00:00
parent a161fad751
commit fef618201f
2 changed files with 7 additions and 3 deletions

View File

@ -152,6 +152,8 @@ Release 0.91.0 - Unreleased
should be synchronous
HBASE-4053 Most of the regions were added into AssignmentManager#servers twice
HBASE-4061 getTableDirs is missing directories to skip
HBASE-3867 when cluster is stopped and server which hosted meta region is
removed from cluster, master breaks down after restarting cluster.
IMPROVEMENTS
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)

View File

@ -22,8 +22,9 @@ package org.apache.hadoop.hbase.catalog;
import java.io.EOFException;
import java.io.IOException;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.net.NoRouteToHostException;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.commons.logging.Log;
@ -311,6 +312,7 @@ public class CatalogTracker {
if (newLocation == null) {
return null;
}
HRegionInterface newConnection = getCachedConnection(newLocation);
if (verifyRegionLocation(newConnection, this.metaLocation, META_REGION)) {
setMetaLocation(newLocation);
@ -420,10 +422,10 @@ public class CatalogTracker {
throw e;
}
} catch (SocketTimeoutException e) {
// Return 'protocol' == null.
LOG.debug("Timed out connecting to " + sn);
} catch (NoRouteToHostException e) {
LOG.debug("Connecting to " + sn, e);
} catch (SocketException e) {
// Return 'protocol' == null.
LOG.debug("Exception connecting to " + sn);
} catch (IOException ioe) {
Throwable cause = ioe.getCause();