mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +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.sent(data.length);
|
||||||
transportServiceAdapter.onRequestSent(node, requestId, action, request, options);
|
transportServiceAdapter.onRequestSent(node, requestId, action, request, options);
|
||||||
targetTransport.workers().execute(() -> {
|
targetTransport.workers().execute(() -> {
|
||||||
ThreadContext threadContext = threadPool.getThreadContext();
|
ThreadContext threadContext = targetTransport.threadPool.getThreadContext();
|
||||||
try (ThreadContext.StoredContext context = threadContext.stashContext()) {
|
try (ThreadContext.StoredContext context = threadContext.stashContext()) {
|
||||||
targetTransport.messageReceived(data, action, LocalTransport.this, version, requestId);
|
targetTransport.messageReceived(data, action, LocalTransport.this, version, requestId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user