Skip to content

Commit 61a3a9f

Browse files
shahrs87Apache9
authored andcommitted
HBASE-22601 Misconfigured addition of peers leads to cluster shutdown. (#499)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent 1b50404 commit 61a3a9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ private void initialize() {
504504
}
505505
}
506506

507+
if(!this.isSourceActive()) {
508+
return;
509+
}
510+
507511
// In rare case, zookeeper setting may be messed up. That leads to the incorrect
508512
// peerClusterId value, which is the same as the source clusterId
509513
if (clusterId.equals(peerClusterId) && !replicationEndpoint.canReplicateToSameCluster()) {

0 commit comments

Comments
 (0)