HBASE-19816 Refresh repliation sinks on UnknownHostException
Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
parent
4476cc196c
commit
0f2c1fa066
|
@ -23,6 +23,7 @@ import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesti
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.ConnectException;
|
import java.net.ConnectException;
|
||||||
import java.net.SocketTimeoutException;
|
import java.net.SocketTimeoutException;
|
||||||
|
import java.net.UnknownHostException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -399,7 +400,7 @@ public class HBaseInterClusterReplicationEndpoint extends HBaseReplicationEndpoi
|
||||||
"call to the remote cluster timed out, which is usually " +
|
"call to the remote cluster timed out, which is usually " +
|
||||||
"caused by a machine failure or a massive slowdown",
|
"caused by a machine failure or a massive slowdown",
|
||||||
this.socketTimeoutMultiplier);
|
this.socketTimeoutMultiplier);
|
||||||
} else if (ioe instanceof ConnectException) {
|
} else if (ioe instanceof ConnectException || ioe instanceof UnknownHostException) {
|
||||||
LOG.warn("Peer is unavailable, rechecking all sinks: ", ioe);
|
LOG.warn("Peer is unavailable, rechecking all sinks: ", ioe);
|
||||||
replicationSinkMgr.chooseSinks();
|
replicationSinkMgr.chooseSinks();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue