Skip to content

Commit 0a1950f

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 6bc78d3 commit 0a1950f

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

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

0 commit comments

Comments
 (0)