Skip to content

Commit 6a0c26f

Browse files
shahrs87apurtell
authored andcommitted
[HBASE-22601] Misconfigured addition of peers leads to cluster shutdown. (#490)
Signed-off-by: Andrew Purtell <apurtell@apache.org>
1 parent cd7bf70 commit 6a0c26f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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
@@ -309,6 +309,10 @@ public void run() {
309309
}
310310
}
311311

312+
if (!this.isSourceActive()) {
313+
return;
314+
}
315+
312316
// In rare case, zookeeper setting may be messed up. That leads to the incorrect
313317
// peerClusterId value, which is the same as the source clusterId
314318
if (clusterId.equals(peerClusterId) && !replicationEndpoint.canReplicateToSameCluster()) {

0 commit comments

Comments
 (0)