Skip to content

Commit

Permalink
HBASE-22601 Misconfigured addition of peers leads to cluster shutdown. (
Browse files Browse the repository at this point in the history
apache#500)

Signed-off-by: Duo Zhang <[email protected]>
(cherry picked from commit c8bb623)

Change-Id: I9158ecfb78140209c3e2966e9018514e7675bb99
  • Loading branch information
shahrs87 authored and Jenkins committed Aug 21, 2019
1 parent b4d074a commit a49743f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ private void initialize() {
}
}

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()) {
Expand Down

0 comments on commit a49743f

Please sign in to comment.