Skip to content

Commit

Permalink
[HBASE-22601] Misconfigured addition of peers leads to cluster shutdo…
Browse files Browse the repository at this point in the history
…wn. (#490)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
  • Loading branch information
shahrs87 authored and apurtell committed Aug 22, 2019
1 parent c066b06 commit bb87e3a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ public void run() {
}
}

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 bb87e3a

Please sign in to comment.