Skip to content

Commit c8bb623

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

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
@@ -511,6 +511,10 @@ private void initialize() {
511511
}
512512
}
513513

514+
if (!this.isSourceActive()) {
515+
return;
516+
}
517+
514518
// In rare case, zookeeper setting may be messed up. That leads to the incorrect
515519
// peerClusterId value, which is the same as the source clusterId
516520
if (clusterId.equals(peerClusterId) && !replicationEndpoint.canReplicateToSameCluster()) {

0 commit comments

Comments
 (0)