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) {
22892289 }
22902290
22912291 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 ()));
22932294 }
22942295
22952296 /**
You can’t perform that action at this time.
0 commit comments