File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
server/src/internalClusterTest/java/org/elasticsearch/search Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments