We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39a7a0b commit 7313e5fCopy full SHA for 7313e5f
server/src/main/java/org/opensearch/action/support/replication/TransportReplicationAction.java
@@ -243,6 +243,8 @@ protected TransportReplicationAction(
243
this.threadPool = threadPool;
244
if (threadPool != null) {
245
this.tcWrapper = InternalThreadContextWrapper.from(threadPool.getThreadContext());
246
+ } else {
247
+ this.tcWrapper = InternalThreadContextWrapper.from(transportSeervice.threadPool.getThreadContext());
248
}
249
this.transportService = transportService;
250
this.clusterService = clusterService;
0 commit comments