From 7c5a088aa58f25bf56e986c6a930611852c8ac3c Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Wed, 25 Sep 2019 16:52:19 -0400 Subject: [PATCH] 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 --- .../java/org/elasticsearch/index/store/CorruptedFileIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/index/store/CorruptedFileIT.java b/server/src/test/java/org/elasticsearch/index/store/CorruptedFileIT.java index 3ca29b6b375..a9ac976d45a 100644 --- a/server/src/test/java/org/elasticsearch/index/store/CorruptedFileIT.java +++ b/server/src/test/java/org/elasticsearch/index/store/CorruptedFileIT.java @@ -53,6 +53,7 @@ import org.elasticsearch.common.lucene.Lucene; 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; @@ -603,7 +604,7 @@ public class CorruptedFileIT extends ESIntegTestCase { Settings.builder().putNull(EnableAllocationDecider.CLUSTER_ROUTING_ALLOCATION_ENABLE_SETTING.getKey()) )); - ensureGreen(); + ensureGreen(TimeValue.timeValueSeconds(60)); } private int numShards(String... index) {