File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
server/src/internalClusterTest/java/org/elasticsearch/action/bulk Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments