Skip to content

Commit 8f52609

Browse files
Fix SearchServiceTests not waiting for scroll clear (#111547)
We were not waiting on the response here but assume the scrolls are cleared in the following lines. This worked as long as the transport action wasn't forking but is broken now that we fork to generic. Fixed by just waiting. closes #111529
1 parent cf0e188 commit 8f52609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/search/SearchServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ public void testMaxOpenScrollContexts() throws Exception {
15481548

15491549
ClearScrollRequest clearScrollRequest = new ClearScrollRequest();
15501550
clearScrollRequest.setScrollIds(clearScrollIds);
1551-
client().clearScroll(clearScrollRequest);
1551+
client().clearScroll(clearScrollRequest).get();
15521552

15531553
for (int i = 0; i < clearScrollIds.size(); i++) {
15541554
client().prepareSearch("index").setSize(1).setScroll(TimeValue.timeValueMinutes(1)).get().decRef();

0 commit comments

Comments
 (0)