Skip to content

Commit 83d979b

Browse files
committed
fixup
1 parent de42ce3 commit 83d979b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/KnnSearchIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void testKnnSearchWithScroll() throws Exception {
6969
SearchResponse firstResponse = client.search(searchRequest).actionGet();
7070
assertThat(firstResponse.getScrollId(), notNullValue());
7171
assertThat(firstResponse.getHits().getHits().length, equalTo(k));
72+
firstResponse.decRef();
7273

7374
while (true) {
7475
SearchScrollRequest scrollRequest = new SearchScrollRequest(firstResponse.getScrollId());
@@ -80,6 +81,7 @@ public void testKnnSearchWithScroll() throws Exception {
8081
assertThat(scrollResponse.getHits().getHits().length, equalTo(1));
8182
assertThat(scrollResponse.getScrollId(), notNullValue());
8283
assertThat(scrollResponse.getHits().getTotalHits().value(), equalTo((long) k));
84+
scrollResponse.decRef();
8385
}
8486

8587
client.prepareClearScroll().addScrollId(firstResponse.getScrollId()).get();

0 commit comments

Comments
 (0)