Skip to content

Commit

Permalink
Increase ensureGreen timeout for testReplicaCorruption (#47136)
Browse files Browse the repository at this point in the history
We can have a large number of shard copies in this test. For example,
the two recent failures have 24 and 27 copies respectively and all
replicas have to copy segment files as their stores are corrupted. Our
CI needs more than 30 seconds to start all these copies.

Note that in two recent failures, the cluster was green just after the
cluster health timed out.

Closes #41899
  • Loading branch information
dnhatn committed Sep 25, 2019
1 parent 00cb789 commit 7ada968
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.ByteSizeUnit;
import org.elasticsearch.common.unit.ByteSizeValue;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.env.NodeEnvironment;
import org.elasticsearch.index.Index;
import org.elasticsearch.index.IndexSettings;
Expand Down Expand Up @@ -603,7 +604,7 @@ public void testReplicaCorruption() throws Exception {
Settings.builder().putNull(EnableAllocationDecider.CLUSTER_ROUTING_ALLOCATION_ENABLE_SETTING.getKey())
));

ensureGreen();
ensureGreen(TimeValue.timeValueSeconds(60));
}

private int numShards(String... index) {
Expand Down

0 comments on commit 7ada968

Please sign in to comment.