Skip to content

Commit d05f39d

Browse files
committed
[TEST} unmutes SearchAsyncActionTests and adds debugging info
This unmutes the testFanOutAndCollect()` method and add a check to make sure we aren't accidentally running something twice causing a search phase to still be running after we have counted down the latch Relates to #29242
1 parent eb17128 commit d05f39d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/test/java/org/elasticsearch/action/search/SearchAsyncActionTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ public void run() {
256256
assertEquals(10, numRequests.get());
257257
}
258258

259-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/29242")
260259
public void testFanOutAndCollect() throws InterruptedException {
261260
SearchRequest request = new SearchRequest();
262261
request.allowPartialSearchResults(true);
@@ -347,6 +346,9 @@ public void run() throws IOException {
347346
sendReleaseSearchContext(result.getRequestId(), new MockConnection(result.node), OriginalIndices.NONE);
348347
}
349348
responseListener.onResponse(response);
349+
if (latch.getCount() == 0) {
350+
throw new AssertionError("Running a search phase after the latch has reached 0 !!!!");
351+
}
350352
latch.countDown();
351353
}
352354
};

0 commit comments

Comments
 (0)