File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
server/src/main/java/org/elasticsearch/snapshots Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ pr : 84089
2
+ summary : Preserve context in `snapshotDeletionListeners`
3
+ area : Snapshot/Restore
4
+ type : bug
5
+ issues :
6
+ - 84036
Original file line number Diff line number Diff line change @@ -2289,7 +2289,8 @@ private static boolean isWritingToRepository(SnapshotsInProgress.Entry entry) {
2289
2289
}
2290
2290
2291
2291
private void addDeleteListener (String deleteUUID , ActionListener <Void > listener ) {
2292
- snapshotDeletionListeners .computeIfAbsent (deleteUUID , k -> new CopyOnWriteArrayList <>()).add (listener );
2292
+ snapshotDeletionListeners .computeIfAbsent (deleteUUID , k -> new CopyOnWriteArrayList <>())
2293
+ .add (ContextPreservingActionListener .wrapPreservingContext (listener , threadPool .getThreadContext ()));
2293
2294
}
2294
2295
2295
2296
/**
You can’t perform that action at this time.
0 commit comments