File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
server/src/main/java/org/elasticsearch/snapshots Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change
1
+ pr : 101652
2
+ summary : Fix race condition in `SnapshotsService`
3
+ area : Snapshot/Restore
4
+ type : bug
5
+ issues : []
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ public class SnapshotsService extends AbstractLifecycleComponent implements Clus
175
175
/**
176
176
* Listeners for snapshot deletion keyed by delete uuid as returned from {@link SnapshotDeletionsInProgress.Entry#uuid()}
177
177
*/
178
- private final Map <String , List <ActionListener <Void >>> snapshotDeletionListeners = new HashMap <>();
178
+ private final Map <String , List <ActionListener <Void >>> snapshotDeletionListeners = new ConcurrentHashMap <>();
179
179
180
180
// Set of repositories currently running either a snapshot finalization or a snapshot delete.
181
181
private final Set <String > currentlyFinalizing = Collections .synchronizedSet (new HashSet <>());
You can’t perform that action at this time.
0 commit comments