Skip to content

Commit dbf5681

Browse files
authored
HBASE-26816 Fix CME in ReplicationSourceManager (#4187)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent addace2 commit dbf5681

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,10 @@ public void join() {
906906
for (ReplicationSourceInterface source : this.sources.values()) {
907907
source.terminate("Region server is closing");
908908
}
909-
for (ReplicationSourceInterface source : this.oldsources) {
910-
source.terminate("Region server is closing");
909+
synchronized (oldsources) {
910+
for (ReplicationSourceInterface source : this.oldsources) {
911+
source.terminate("Region server is closing");
912+
}
911913
}
912914
}
913915

0 commit comments

Comments
 (0)