Skip to content

Commit a81788c

Browse files
committed
Names
1 parent 4f79791 commit a81788c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public void testIncrementalBulkHighWatermarkBackOff() throws Exception {
232232
add512BRequests(requestsThrottle, index);
233233

234234
CountDownLatch finishLatch = new CountDownLatch(1);
235-
blockWritePool(threadPool, finishLatch);
235+
blockWriteCoordinationPool(threadPool, finishLatch);
236236
IncrementalBulkService.Handler handlerThrottled = incrementalBulkService.newBulkRequest();
237237
refCounted.incRef();
238238
handlerThrottled.addItems(requestsThrottle, refCounted::decRef, () -> nextPage.set(true));
@@ -295,8 +295,8 @@ public void testGlobalBulkFailure() throws InterruptedException {
295295
IncrementalBulkService incrementalBulkService = internalCluster().getInstance(IncrementalBulkService.class, randomNodeName);
296296
ThreadPool threadPool = internalCluster().getInstance(ThreadPool.class, randomNodeName);
297297

298-
blockWritePool(threadPool, blockingLatch);
299-
fillWriteQueue(threadPool);
298+
blockWriteCoordinationPool(threadPool, blockingLatch);
299+
fillWriteCoordinationQueue(threadPool);
300300

301301
IncrementalBulkService.Handler handler = incrementalBulkService.newBulkRequest();
302302
if (randomBoolean()) {
@@ -333,7 +333,7 @@ public void testBulkLevelBulkFailureAfterFirstIncrementalRequest() throws Except
333333
AtomicBoolean nextRequested = new AtomicBoolean(true);
334334
AtomicLong hits = new AtomicLong(0);
335335
try {
336-
blockWritePool(threadPool, blockingLatch1);
336+
blockWriteCoordinationPool(threadPool, blockingLatch1);
337337
while (nextRequested.get()) {
338338
nextRequested.set(false);
339339
refCounted.incRef();
@@ -348,8 +348,8 @@ public void testBulkLevelBulkFailureAfterFirstIncrementalRequest() throws Except
348348
CountDownLatch blockingLatch2 = new CountDownLatch(1);
349349

350350
try {
351-
blockWritePool(threadPool, blockingLatch2);
352-
fillWriteQueue(threadPool);
351+
blockWriteCoordinationPool(threadPool, blockingLatch2);
352+
fillWriteCoordinationQueue(threadPool);
353353

354354
handler.lastItems(List.of(indexRequest(index)), refCounted::decRef, future);
355355
} finally {
@@ -531,7 +531,7 @@ public void testShortCircuitShardLevelFailureWithIngestNodeHop() throws Exceptio
531531
}
532532
}
533533

534-
private static void blockWritePool(ThreadPool threadPool, CountDownLatch finishLatch) {
534+
private static void blockWriteCoordinationPool(ThreadPool threadPool, CountDownLatch finishLatch) {
535535
final var threadCount = threadPool.info(ThreadPool.Names.WRITE_COORDINATION).getMax();
536536
final var startBarrier = new CyclicBarrier(threadCount + 1);
537537
final var blockingTask = new AbstractRunnable() {
@@ -557,7 +557,7 @@ public boolean isForceExecution() {
557557
safeAwait(startBarrier);
558558
}
559559

560-
private static void fillWriteQueue(ThreadPool threadPool) {
560+
private static void fillWriteCoordinationQueue(ThreadPool threadPool) {
561561
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() {

0 commit comments

Comments
 (0)