HBASE-17675 ReplicationEndpoint should choose new sinks if a SaslException occurs
Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
d7ffa0013b
commit
3c0750de54
@ -56,6 +56,7 @@ import org.apache.hadoop.hbase.util.Bytes;
|
|||||||
import org.apache.hadoop.hbase.util.FSUtils;
|
import org.apache.hadoop.hbase.util.FSUtils;
|
||||||
import org.apache.hadoop.hbase.wal.WAL.Entry;
|
import org.apache.hadoop.hbase.wal.WAL.Entry;
|
||||||
import org.apache.hadoop.ipc.RemoteException;
|
import org.apache.hadoop.ipc.RemoteException;
|
||||||
|
import javax.security.sasl.SaslException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A {@link org.apache.hadoop.hbase.replication.ReplicationEndpoint}
|
* A {@link org.apache.hadoop.hbase.replication.ReplicationEndpoint}
|
||||||
@ -293,6 +294,9 @@ public class HBaseInterClusterReplicationEndpoint extends HBaseReplicationEndpoi
|
|||||||
+ "Replication cannot proceed without losing data.", sleepMultiplier)) {
|
+ "Replication cannot proceed without losing data.", sleepMultiplier)) {
|
||||||
sleepMultiplier++;
|
sleepMultiplier++;
|
||||||
}
|
}
|
||||||
|
} else if (ioe instanceof SaslException) {
|
||||||
|
LOG.warn("Peer encountered SaslException, rechecking all sinks: ", ioe);
|
||||||
|
replicationSinkMgr.chooseSinks();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ioe instanceof SocketTimeoutException) {
|
if (ioe instanceof SocketTimeoutException) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user