Skip to content

Commit b743da7

Browse files
committed
upd
1 parent 0010844 commit b743da7

File tree

1 file changed

+10
-2
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session

1 file changed

+10
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/EsqlSession.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ public void execute(EsqlQueryRequest request, EsqlExecutionInfo executionInfo, P
177177
analyzedPlan(parsed, executionInfo, request.filter(), new EsqlCCSUtils.CssPartialErrorsActionListener(executionInfo, listener) {
178178
@Override
179179
public void onResponse(LogicalPlan analyzedPlan) {
180-
assert ThreadPool.assertCurrentThreadPool(ThreadPool.Names.SEARCH, ThreadPool.Names.SEARCH_COORDINATION);
180+
assert ThreadPool.assertCurrentThreadPool(
181+
ThreadPool.Names.SEARCH,
182+
ThreadPool.Names.SEARCH_COORDINATION,
183+
ThreadPool.Names.SYSTEM_READ
184+
);
181185
SubscribableListener.<LogicalPlan>newForked(l -> preOptimizedPlan(analyzedPlan, l))
182186
.<LogicalPlan>andThen((l, p) -> preMapper.preMapper(optimizedPlan(p), l))
183187
.<Result>andThen((l, p) -> executeOptimizedPlan(request, executionInfo, planRunner, p, l))
@@ -197,7 +201,11 @@ public void executeOptimizedPlan(
197201
LogicalPlan optimizedPlan,
198202
ActionListener<Result> listener
199203
) {
200-
assert ThreadPool.assertCurrentThreadPool(ThreadPool.Names.SEARCH, ThreadPool.Names.SEARCH_COORDINATION);
204+
assert ThreadPool.assertCurrentThreadPool(
205+
ThreadPool.Names.SEARCH,
206+
ThreadPool.Names.SEARCH_COORDINATION,
207+
ThreadPool.Names.SYSTEM_READ
208+
);
201209
if (explainMode) {// TODO: INLINESTATS come back to the explain mode branch and reevaluate
202210
PhysicalPlan physicalPlan = logicalPlanToPhysicalPlan(optimizedPlan, request);
203211
String physicalPlanString = physicalPlan.toString();

0 commit comments

Comments
 (0)