Skip to content

Commit c43a951

Browse files
author
SiCheng-Zheng
committed
HBASE-27249 Remove invalid peer RegionServer crash
1 parent a3eeab8 commit c43a951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private void initialize() {
540540

541541
if (!this.isSourceActive()) {
542542
setSourceStartupStatus(false);
543-
if (Thread.currentThread().isInterrupted()) {
543+
if (Thread.currentThread().isInterrupted() || !this.sourceRunning) {
544544
// If source is not running and thread is interrupted this means someone has tried to
545545
// remove this peer.
546546
return;
@@ -570,7 +570,7 @@ private void initialize() {
570570

571571
if (!this.isSourceActive()) {
572572
setSourceStartupStatus(false);
573-
if (Thread.currentThread().isInterrupted()) {
573+
if (Thread.currentThread().isInterrupted() || !this.sourceRunning) {
574574
// If source is not running and thread is interrupted this means someone has tried to
575575
// remove this peer.
576576
return;

0 commit comments

Comments
 (0)