Skip to content

Commit

Permalink
Fix TransportSearchIT#testCircuitBreakerReduceFail
Browse files Browse the repository at this point in the history
Ensures that the test always run with a memory circuit breaker.

Relates #62223
  • Loading branch information
jimczi committed Sep 24, 2020
1 parent d9acac2 commit 9231981
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ public void process(FetchSubPhase.HitContext hitContext) {
}
}

@Override
protected Settings nodeSettings(int nodeOrdinal) {
return Settings.builder()
.put(super.nodeSettings(nodeOrdinal))
.put("indices.breaker.request.type", "memory")
.build();
}

@Override
protected Collection<Class<? extends Plugin>> nodePlugins() {
return Collections.singletonList(TestPlugin.class);
Expand Down

0 comments on commit 9231981

Please sign in to comment.