Skip to content

Commit 445e8f3

Browse files
committed
Run HeapAttackIT with no replicas
1 parent bea3af2 commit 445e8f3

File tree

1 file changed

+2
-1
lines changed
  • test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack

1 file changed

+2
-1
lines changed

test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.elasticsearch.client.ResponseException;
2020
import org.elasticsearch.client.RestClient;
2121
import org.elasticsearch.client.WarningsHandler;
22+
import org.elasticsearch.cluster.metadata.IndexMetadata;
2223
import org.elasticsearch.common.CheckedSupplier;
2324
import org.elasticsearch.common.Strings;
2425
import org.elasticsearch.common.breaker.CircuitBreakingException;
@@ -972,7 +973,7 @@ private void bulk(String name, String bulk) throws IOException {
972973
private void initIndex(String name, String bulk) throws IOException {
973974
if (indexExists(name) == false) {
974975
// not strictly required, but this can help isolate failure from bulk indexing.
975-
createIndex(name);
976+
createIndex(name, Settings.builder().put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 0).build());
976977
}
977978
if (hasText(bulk)) {
978979
bulk(name, bulk);

0 commit comments

Comments
 (0)