Skip to content

Commit 5363372

Browse files
Fix CrossClusterSearchLeakIT scroll size 0 (#78685)
The test would provoke a scroll of size 0, fixed to always use minimum 1 as size for scrolls. Closes #78673
1 parent e11077b commit 5363372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/ccs/CrossClusterSearchLeakIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void testSearch() throws Exception {
104104
searchRequest.allowPartialSearchResults(false);
105105
boolean scroll = randomBoolean();
106106
searchRequest.source(new SearchSourceBuilder().query(new MatchAllQueryBuilder())
107-
.aggregation(terms("f").field("f").size(docs + between(scroll ? 1 : 0, 10))).size(between(0, 1000)));
107+
.aggregation(terms("f").field("f").size(docs + between(0, 10))).size(between(scroll ? 1 : 0, 1000)));
108108
if (scroll) {
109109
searchRequest.scroll("30s");
110110
}

0 commit comments

Comments
 (0)