Skip to content

Commit

Permalink
Fixing flaky org.opensearch.cluster.routing.allocation.decider.DiskTh…
Browse files Browse the repository at this point in the history
…resholdDeciderIT.testHighWatermarkNotExceeded test case (#4012)

Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta authored Jul 26, 2022
1 parent f4b0eef commit 7694a27
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import org.opensearch.core.internal.io.IOUtils;
import org.opensearch.env.Environment;
import org.opensearch.env.NodeEnvironment;
import org.opensearch.index.IndexSettings;
import org.opensearch.monitor.fs.FsService;
import org.opensearch.plugins.Plugin;
import org.opensearch.repositories.fs.FsRepository;
Expand Down Expand Up @@ -173,6 +174,7 @@ public void testHighWatermarkNotExceeded() throws Exception {
.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 0)
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 6)
.put(INDEX_STORE_STATS_REFRESH_INTERVAL_SETTING.getKey(), "0ms")
.put(IndexSettings.INDEX_MERGE_ON_FLUSH_ENABLED.getKey(), false)
.build()
);
final long minShardSize = createReasonableSizedShards(indexName);
Expand Down

0 comments on commit 7694a27

Please sign in to comment.