File tree 2 files changed +8
-1
lines changed
server/src/main/java/org/elasticsearch/snapshots 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 @@ -2286,7 +2286,8 @@ private static boolean isWritingToRepository(SnapshotsInProgress.Entry entry) {
2286
2286
}
2287
2287
2288
2288
private void addDeleteListener (String deleteUUID , ActionListener <Void > listener ) {
2289
- snapshotDeletionListeners .computeIfAbsent (deleteUUID , k -> new CopyOnWriteArrayList <>()).add (listener );
2289
+ snapshotDeletionListeners .computeIfAbsent (deleteUUID , k -> new CopyOnWriteArrayList <>())
2290
+ .add (ContextPreservingActionListener .wrapPreservingContext (listener , threadPool .getThreadContext ()));
2290
2291
}
2291
2292
2292
2293
/**
You can’t perform that action at this time.
0 commit comments