diff --git a/muted-tests.yml b/muted-tests.yml index 7bea062caa20d..a90683cf30053 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -516,12 +516,6 @@ tests: - class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT method: test {csv-spec:spatial.ConvertFromStringParseError} issue: https://github.com/elastic/elasticsearch/issues/134104 -- class: org.elasticsearch.xpack.writeloadforecaster.WriteLoadForecasterIT - method: testWriteLoadForecastIsOverriddenBySetting - issue: https://github.com/elastic/elasticsearch/issues/133455 -- class: org.elasticsearch.xpack.writeloadforecaster.WriteLoadForecasterIT - method: testWriteLoadForecastDoesNotGetPopulatedWithInvalidLicense - issue: https://github.com/elastic/elasticsearch/issues/134124 - class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT method: test {csv-spec:fork.ForkWithMixOfCommands} issue: https://github.com/elastic/elasticsearch/issues/134135 diff --git a/x-pack/plugin/write-load-forecaster/src/internalClusterTest/java/org/elasticsearch/xpack/writeloadforecaster/WriteLoadForecasterIT.java b/x-pack/plugin/write-load-forecaster/src/internalClusterTest/java/org/elasticsearch/xpack/writeloadforecaster/WriteLoadForecasterIT.java index 26bf25bf8c82b..965eaf2e064ae 100644 --- a/x-pack/plugin/write-load-forecaster/src/internalClusterTest/java/org/elasticsearch/xpack/writeloadforecaster/WriteLoadForecasterIT.java +++ b/x-pack/plugin/write-load-forecaster/src/internalClusterTest/java/org/elasticsearch/xpack/writeloadforecaster/WriteLoadForecasterIT.java @@ -145,6 +145,8 @@ private void setUpDataStreamWriteDocsAndRollover(String dataStreamName) throws E private void setUpDataStreamWriteDocsAndRollover(String dataStreamName, Settings extraIndexTemplateSettings) throws Exception { final int numberOfShards = randomIntBetween(1, 5); final int numberOfReplicas = randomIntBetween(0, 1); + internalCluster().ensureAtLeastNumDataNodes(numberOfReplicas + 1); + final Settings indexSettings = Settings.builder() .put(extraIndexTemplateSettings) .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, numberOfShards)