HBASE-26816 Fix CME in ReplicationSourceManager (#4187)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Xiaolin Ha 2022-03-11 11:06:14 +08:00 committed by haxiaolin
parent 49d3a00652
commit 8c42bca86e
1 changed files with 4 additions and 2 deletions

View File

@ -726,10 +726,12 @@ public class ReplicationSourceManager {
for (ReplicationSourceInterface source : this.sources.values()) {
source.terminate("Region server is closing");
}
synchronized (oldsources) {
for (ReplicationSourceInterface source : this.oldsources) {
source.terminate("Region server is closing");
}
}
}
/**
* Get a copy of the wals of the normal sources on this rs