mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 17:09:18 +00:00
Use targetTransport.threadPool to stash context not the local one
This commit is contained in:
parent
2a137b5548
commit
2ca3433bea
@ -225,7 +225,7 @@ public class LocalTransport extends AbstractLifecycleComponent<Transport> implem
|
||||
transportServiceAdapter.sent(data.length);
|
||||
transportServiceAdapter.onRequestSent(node, requestId, action, request, options);
|
||||
targetTransport.workers().execute(() -> {
|
||||
ThreadContext threadContext = threadPool.getThreadContext();
|
||||
ThreadContext threadContext = targetTransport.threadPool.getThreadContext();
|
||||
try (ThreadContext.StoredContext context = threadContext.stashContext()) {
|
||||
targetTransport.messageReceived(data, action, LocalTransport.this, version, requestId);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user