This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch branch-1.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-1.3 by this push:
new 6a0c26f [HBASE-22601] Misconfigured addition of peers leads to
cluster shutdown. (#490)
6a0c26f is described below
commit 6a0c26fff139f75fc1fcab706aa0fe4afa9e9792
Author: shahrs87 <[email protected]>
AuthorDate: Thu Aug 22 13:04:23 2019 -0700
[HBASE-22601] Misconfigured addition of peers leads to cluster shutdown.
(#490)
Signed-off-by: Andrew Purtell <[email protected]>
---
.../hadoop/hbase/replication/regionserver/ReplicationSource.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
index d5b398c..d1184b9 100644
---
a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
+++
b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
@@ -309,6 +309,10 @@ public class ReplicationSource extends Thread
}
}
+ 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()) {