Skip to content

Commit ad5d0ed

Browse files
committed
Fix
1 parent b7f5b12 commit ad5d0ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/internalClusterTest/java/org/elasticsearch/action/bulk/IncrementalBulkIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public void testShortCircuitShardLevelFailureWithIngestNodeHop() throws Exceptio
532532
}
533533

534534
private static void blockWritePool(ThreadPool threadPool, CountDownLatch finishLatch) {
535-
final var threadCount = threadPool.info(ThreadPool.Names.WRITE).getMax();
535+
final var threadCount = threadPool.info(ThreadPool.Names.WRITE_COORDINATION).getMax();
536536
final var startBarrier = new CyclicBarrier(threadCount + 1);
537537
final var blockingTask = new AbstractRunnable() {
538538
@Override
@@ -552,13 +552,13 @@ public boolean isForceExecution() {
552552
}
553553
};
554554
for (int i = 0; i < threadCount; i++) {
555-
threadPool.executor(ThreadPool.Names.WRITE).execute(blockingTask);
555+
threadPool.executor(ThreadPool.Names.WRITE_COORDINATION).execute(blockingTask);
556556
}
557557
safeAwait(startBarrier);
558558
}
559559

560560
private static void fillWriteQueue(ThreadPool threadPool) {
561-
final var queueSize = Math.toIntExact(threadPool.info(ThreadPool.Names.WRITE).getQueueSize().singles());
561+
final var queueSize = Math.toIntExact(threadPool.info(ThreadPool.Names.WRITE_COORDINATION).getQueueSize().singles());
562562
final var queueFilled = new AtomicBoolean(false);
563563
final var queueFillingTask = new AbstractRunnable() {
564564
@Override
@@ -577,7 +577,7 @@ public boolean isForceExecution() {
577577
}
578578
};
579579
for (int i = 0; i < queueSize; i++) {
580-
threadPool.executor(ThreadPool.Names.WRITE).execute(queueFillingTask);
580+
threadPool.executor(ThreadPool.Names.WRITE_COORDINATION).execute(queueFillingTask);
581581
}
582582
queueFilled.set(true);
583583
}

0 commit comments

Comments
 (0)