HBASE-26816 Fix CME in ReplicationSourceManager (#4187)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
49d3a00652
commit
8c42bca86e
|
@ -726,8 +726,10 @@ public class ReplicationSourceManager {
|
|||
for (ReplicationSourceInterface source : this.sources.values()) {
|
||||
source.terminate("Region server is closing");
|
||||
}
|
||||
for (ReplicationSourceInterface source : this.oldsources) {
|
||||
source.terminate("Region server is closing");
|
||||
synchronized (oldsources) {
|
||||
for (ReplicationSourceInterface source : this.oldsources) {
|
||||
source.terminate("Region server is closing");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue