remove unnecessary clearScroll call - these contexts are released by delete index now

This commit is contained in:
Simon Willnauer 2014-11-25 14:53:38 +01:00
parent 13d1bb5681
commit 82868e9cf2
1 changed files with 1 additions and 1 deletions

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.scroll; package org.elasticsearch.search.scroll;
import com.google.common.base.Predicate;
import org.elasticsearch.action.index.IndexRequestBuilder; import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.cluster.routing.allocation.decider.ShardsLimitAllocationDecider; import org.elasticsearch.cluster.routing.allocation.decider.ShardsLimitAllocationDecider;
@ -108,7 +109,6 @@ public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationT
assertThat(searchResponse.getSuccessfulShards(), equalTo(numberOfSuccessfulShards)); assertThat(searchResponse.getSuccessfulShards(), equalTo(numberOfSuccessfulShards));
} while (searchResponse.getHits().hits().length > 0); } while (searchResponse.getHits().hits().length > 0);
assertThat(numHits, greaterThan(0l)); assertThat(numHits, greaterThan(0l));
clearScroll("_all");
} }
} }