HBASE-22601 Misconfigured addition of peers leads to cluster shutdown. (#499)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
shahrs87 2019-08-21 06:52:50 -07:00 committed by Duo Zhang
parent 1b50404f34
commit 61a3a9ffbb
1 changed files with 4 additions and 0 deletions

View File

@ -504,6 +504,10 @@ public class ReplicationSource implements ReplicationSourceInterface {
}
}
if(!this.isSourceActive()) {
return;
}
// In rare case, zookeeper setting may be messed up. That leads to the incorrect
// peerClusterId value, which is the same as the source clusterId
if (clusterId.equals(peerClusterId) && !replicationEndpoint.canReplicateToSameCluster()) {