Skip to content

Commit b8cd5f3

Browse files
fix another test
1 parent 7ce6d07 commit b8cd5f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/bucket/TermsDocCountErrorIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.elasticsearch.action.search.SearchResponse;
1414
import org.elasticsearch.cluster.metadata.IndexMetadata;
1515
import org.elasticsearch.common.settings.Settings;
16+
import org.elasticsearch.search.SearchService;
1617
import org.elasticsearch.search.aggregations.Aggregator.SubAggCollectionMode;
1718
import org.elasticsearch.search.aggregations.BucketOrder;
1819
import org.elasticsearch.search.aggregations.bucket.terms.Terms;
@@ -909,6 +910,7 @@ public void testDoubleValueFieldSubAggDesc() throws Exception {
909910
* 3 one-shard indices.
910911
*/
911912
public void testFixedDocs() throws Exception {
913+
updateClusterSettings(Settings.builder().put(SearchService.BATCHED_QUERY_PHASE.getKey(), false));
912914
assertNoFailuresAndResponse(
913915
prepareSearch("idx_fixed_docs_0", "idx_fixed_docs_1", "idx_fixed_docs_2").addAggregation(
914916
terms("terms").executionHint(randomExecutionHint())
@@ -957,6 +959,7 @@ public void testFixedDocs() throws Exception {
957959
assertThat(bucket.getDocCountError(), equalTo(29L));
958960
}
959961
);
962+
updateClusterSettings(Settings.builder().putNull(SearchService.BATCHED_QUERY_PHASE.getKey()));
960963
}
961964

962965
/**

0 commit comments

Comments
 (0)