Skip to content

Commit d781cb0

Browse files
committed
Remove batched override and add repeat iterations for CI
1 parent 906bbfc commit d781cb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/internalClusterTest/java/org/elasticsearch/action/search/TransportSearchIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
package org.elasticsearch.action.search;
1111

12+
import com.carrotsearch.randomizedtesting.annotations.Repeat;
13+
1214
import org.apache.lucene.index.LeafReaderContext;
1315
import org.apache.lucene.search.ScoreMode;
1416
import org.elasticsearch.TransportVersion;
@@ -446,8 +448,8 @@ public void testSearchIdle() throws Exception {
446448
);
447449
}
448450

451+
@Repeat(iterations = 100)
449452
public void testCircuitBreakerReduceFail() throws Exception {
450-
updateClusterSettings(Settings.builder().put(SearchService.BATCHED_QUERY_PHASE.getKey(), false));
451453
int numShards = randomIntBetween(1, 10);
452454
indexSomeDocs("test", numShards, numShards * 3);
453455

@@ -521,9 +523,7 @@ public void onFailure(Exception exc) {
521523
}
522524
assertBusy(() -> assertThat(requestBreakerUsed(), equalTo(0L)));
523525
} finally {
524-
updateClusterSettings(
525-
Settings.builder().putNull("indices.breaker.request.limit").putNull(SearchService.BATCHED_QUERY_PHASE.getKey())
526-
);
526+
updateClusterSettings(Settings.builder().putNull("indices.breaker.request.limit"));
527527
}
528528
}
529529

0 commit comments

Comments
 (0)