@@ -323,7 +323,7 @@ public void testLimitConcurrentNodes() {
323323 assertThat (response .failedShards , equalTo (0 ));
324324 }
325325
326- public void testDoesNotSendMoreRequestsAfterNodeIsSkipped () {
326+ public void testSkipNodes () {
327327 var targetShards = List .of (
328328 targetShard (shard1 , node1 ),
329329 targetShard (shard2 , node2 ),
@@ -333,9 +333,7 @@ public void testDoesNotSendMoreRequestsAfterNodeIsSkipped() {
333333 );
334334
335335 AtomicInteger processed = new AtomicInteger (0 );
336- var sent = ConcurrentCollections .<NodeRequest >newQueue ();
337336 var response = safeGet (sendRequests (targetShards , randomBoolean (), 1 , (node , shardIds , aliasFilters , listener ) -> {
338- sent .add (new NodeRequest (node , shardIds , aliasFilters ));
339337 runWithDelay (() -> {
340338 if (processed .incrementAndGet () == 1 ) {
341339 listener .onResponse (new DataNodeComputeResponse (List .of (), Map .of ()));
@@ -344,7 +342,6 @@ public void testDoesNotSendMoreRequestsAfterNodeIsSkipped() {
344342 }
345343 });
346344 }));
347- assertThat (sent .size (), equalTo (5 ));
348345 assertThat (response .totalShards , equalTo (5 ));
349346 assertThat (response .successfulShards , equalTo (1 ));
350347 assertThat (response .skippedShards , equalTo (4 ));
0 commit comments