HBASE-4936 Cached HRegionInterface connections crash when getting UnknownHost exceptions
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1211232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83107d86d5
commit
dc104e7669
|
@ -23,6 +23,7 @@ import java.net.ConnectException;
|
||||||
import java.net.NoRouteToHostException;
|
import java.net.NoRouteToHostException;
|
||||||
import java.net.SocketException;
|
import java.net.SocketException;
|
||||||
import java.net.SocketTimeoutException;
|
import java.net.SocketTimeoutException;
|
||||||
|
import java.net.UnknownHostException;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
|
@ -554,6 +555,8 @@ public class CatalogTracker {
|
||||||
LOG.debug("Connecting to " + sn, e);
|
LOG.debug("Connecting to " + sn, e);
|
||||||
} catch (SocketException e) {
|
} catch (SocketException e) {
|
||||||
LOG.debug("Exception connecting to " + sn);
|
LOG.debug("Exception connecting to " + sn);
|
||||||
|
} catch (UnknownHostException e) {
|
||||||
|
LOG.debug("Unknown host exception connecting to " + sn);
|
||||||
} 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) {
|
||||||
|
|
Loading…
Reference in New Issue