HBASE-9451 Meta remains unassigned when the meta server crashes with the ClusterStatusListener set

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1521513 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2013-09-10 14:43:57 +00:00
parent da4167c42b
commit 0be4e12f71
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@ import org.apache.hadoop.hbase.client.RetriesExhaustedException;
import org.apache.hadoop.hbase.ipc.ServerNotRunningYetException;
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService;
import org.apache.hadoop.hbase.regionserver.RegionServerStoppedException;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.zookeeper.MetaRegionTracker;
import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;
@ -427,6 +428,8 @@ public class CatalogTracker {
// Pass -- remote server is not up so can't be carrying root
} catch (UnknownHostException e) {
// Pass -- server name doesn't resolve so it can't be assigned anything.
} catch (RegionServerStoppedException e) {
// Pass -- server name sends us to a server that is dying or already dead.
}
return (service == null)? false:
verifyRegionLocation(service,