Skip to content

Commit

Permalink
Use correct system index bulk executor
Browse files Browse the repository at this point in the history
In one place we would always use the Write threadpool, which could let
write thread pool queuing lead to increased system index write latency.
  • Loading branch information
henningandersen committed Mar 9, 2024
1 parent 5db2b06 commit 3091034
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public void onTimeout(TimeValue timeout) {
}

private void forkAndExecute(Task task, BulkRequest bulkRequest, String executorName, ActionListener<BulkResponse> releasingListener) {
threadPool.executor(Names.WRITE).execute(new ActionRunnable<>(releasingListener) {
threadPool.executor(executorName).execute(new ActionRunnable<>(releasingListener) {
@Override
protected void doRun() {
doInternalExecute(task, bulkRequest, executorName, releasingListener);
Expand Down

0 comments on commit 3091034

Please sign in to comment.