@@ -410,9 +410,9 @@ public void testOnlySystem() throws IOException {
410410 assertFalse (TransportBulkAction .isOnlySystem (buildBulkStreamRequest (mixed ), indicesLookup , systemIndices ));
411411 }
412412
413- private void blockWriteThreadPool (CountDownLatch blockingLatch ) {
413+ private void blockWriteCoordinationThreadPool (CountDownLatch blockingLatch ) {
414414 assertThat (blockingLatch .getCount (), greaterThan (0L ));
415- final var executor = threadPool .executor (ThreadPool .Names .WRITE );
415+ final var executor = threadPool .executor (ThreadPool .Names .WRITE_COORDINATION );
416416 // Add tasks repeatedly until we get an EsRejectedExecutionException which indicates that the threadpool and its queue are full.
417417 expectThrows (EsRejectedExecutionException .class , () -> {
418418 // noinspection InfiniteLoopStatement
@@ -427,7 +427,7 @@ public void testRejectCoordination() {
427427
428428 final var blockingLatch = new CountDownLatch (1 );
429429 try {
430- blockWriteThreadPool (blockingLatch );
430+ blockWriteCoordinationThreadPool (blockingLatch );
431431 PlainActionFuture <BulkResponse > future = new PlainActionFuture <>();
432432 ActionTestUtils .execute (bulkAction , null , bulkRequest , future );
433433 expectThrows (EsRejectedExecutionException .class , future );
@@ -442,7 +442,7 @@ public void testRejectionAfterCreateIndexIsPropagated() {
442442 bulkAction .failIndexCreationException = randomBoolean () ? new ResourceAlreadyExistsException ("index already exists" ) : null ;
443443 final var blockingLatch = new CountDownLatch (1 );
444444 try {
445- bulkAction .beforeIndexCreation = () -> blockWriteThreadPool (blockingLatch );
445+ bulkAction .beforeIndexCreation = () -> blockWriteCoordinationThreadPool (blockingLatch );
446446 PlainActionFuture <BulkResponse > future = new PlainActionFuture <>();
447447 ActionTestUtils .execute (bulkAction , null , bulkRequest , future );
448448 expectThrows (EsRejectedExecutionException .class , future );
0 commit comments