Skip to content

Commit 7ada968

Browse files
committed
Increase ensureGreen timeout for testReplicaCorruption (#47136)
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
1 parent 00cb789 commit 7ada968

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/test/java/org/elasticsearch/index/store/CorruptedFileIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import org.elasticsearch.common.settings.Settings;
5454
import org.elasticsearch.common.unit.ByteSizeUnit;
5555
import org.elasticsearch.common.unit.ByteSizeValue;
56+
import org.elasticsearch.common.unit.TimeValue;
5657
import org.elasticsearch.env.NodeEnvironment;
5758
import org.elasticsearch.index.Index;
5859
import org.elasticsearch.index.IndexSettings;
@@ -603,7 +604,7 @@ public void testReplicaCorruption() throws Exception {
603604
Settings.builder().putNull(EnableAllocationDecider.CLUSTER_ROUTING_ALLOCATION_ENABLE_SETTING.getKey())
604605
));
605606

606-
ensureGreen();
607+
ensureGreen(TimeValue.timeValueSeconds(60));
607608
}
608609

609610
private int numShards(String... index) {

0 commit comments

Comments
 (0)