HBASE-26816 Fix CME in ReplicationSourceManager (#4187)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
addace21b6
commit
dbf56819c3
|
@ -906,8 +906,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