You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Guanghao Zhang (Jira)" <ji...@apache.org> on 2020/07/15 03:16:00 UTC
[jira] [Created] (HBASE-24743) Reject to add a peer which replicate
to itself earlier
Guanghao Zhang created HBASE-24743:
--------------------------------------
Summary: Reject to add a peer which replicate to itself earlier
Key: HBASE-24743
URL: https://issues.apache.org/jira/browse/HBASE-24743
Project: HBase
Issue Type: Improvement
Reporter: Guanghao Zhang
Now there are one check in ReplicationSource#initialize method
{code:java}
// 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()) {
this.terminate("ClusterId " + clusterId + " is replicating to itself: peerClusterId "
+ peerClusterId + " which is not allowed by ReplicationEndpoint:"
+ replicationEndpoint.getClass().getName(), null, false);
this.manager.removeSource(this);
return;
}
{code}
This check should move to AddPeerProcedure's precheck.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)