Skip to content

Commit

Permalink
HBASE-26816 Fix CME in ReplicationSourceManager (#4187)
Browse files Browse the repository at this point in the history
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
sunhelly authored Mar 11, 2022
1 parent addace2 commit dbf5681
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -906,8 +906,10 @@ public void join() {
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");
}
}
}

Expand Down

0 comments on commit dbf5681

Please sign in to comment.