HBASE-22601 Misconfigured addition of peers leads to cluster shutdown. (#500)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
6bc78d3b70
commit
0a1950f43c
|
@ -510,6 +510,10 @@ public class ReplicationSource implements ReplicationSourceInterface {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.isSourceActive()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// In rare case, zookeeper setting may be messed up. That leads to the incorrect
|
// In rare case, zookeeper setting may be messed up. That leads to the incorrect
|
||||||
// peerClusterId value, which is the same as the source clusterId
|
// peerClusterId value, which is the same as the source clusterId
|
||||||
if (clusterId.equals(peerClusterId) && !replicationEndpoint.canReplicateToSameCluster()) {
|
if (clusterId.equals(peerClusterId) && !replicationEndpoint.canReplicateToSameCluster()) {
|
||||||
|
|
Loading…
Reference in New Issue