HBASE-3445 Master crashes on data that was moved from different host

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1061563 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-01-20 23:12:00 +00:00
parent fb70397775
commit 2e44b84e73
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ package org.apache.hadoop.hbase.catalog;
import java.io.EOFException; import java.io.EOFException;
import java.io.IOException; import java.io.IOException;
import java.net.ConnectException; import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
@ -388,6 +389,9 @@ public class CatalogTracker {
} else { } else {
throw e; throw e;
} }
} catch (SocketTimeoutException e) {
// We were passed the wrong address. Return 'protocol' == null.
LOG.debug("Timed out connecting to " + address);
} catch (IOException ioe) { } catch (IOException ioe) {
Throwable cause = ioe.getCause(); Throwable cause = ioe.getCause();
if (cause != null && cause instanceof EOFException) { if (cause != null && cause instanceof EOFException) {