Browse Source

Fix TransportSearchIT#testCircuitBreakerReduceFail

Ensures that the test always run with a memory circuit breaker.

Relates #62223
jimczi 5 years ago
parent
commit
9231981f6c

+ 8 - 0
server/src/internalClusterTest/java/org/elasticsearch/action/search/TransportSearchIT.java

@@ -111,6 +111,14 @@ public class TransportSearchIT extends ESIntegTestCase {
         }
         }
     }
     }
 
 
+    @Override
+    protected Settings nodeSettings(int nodeOrdinal) {
+        return Settings.builder()
+            .put(super.nodeSettings(nodeOrdinal))
+            .put("indices.breaker.request.type", "memory")
+            .build();
+    }
+
     @Override
     @Override
     protected Collection<Class<? extends Plugin>> nodePlugins() {
     protected Collection<Class<? extends Plugin>> nodePlugins() {
         return Collections.singletonList(TestPlugin.class);
         return Collections.singletonList(TestPlugin.class);