Skip to content

Commit 0ad4f52

Browse files
authored
Increase ensureGreen() timeout in CloseWhileRelocatingShardsIT (#53981)
The test in CloseWhileRelocatingShardsIT failed recently multiple times (3) when waiting for initial indices to be become green. Looking at the execution logs from #53544 it appears at the very beginning of the test and when the WindowsFS file system is picked up (which is known to slow down tests). This commit simply increases the timeout for the first ensureGreen() to 60 seconds. If the test continues to fail, we might want to test a larger timeout or disable WindowsFS for this test. Closes #53544
1 parent b2a6bd8 commit 0ad4f52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/test/java/org/elasticsearch/indices/state/CloseWhileRelocatingShardsIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.elasticsearch.cluster.routing.allocation.decider.ThrottlingAllocationDecider;
3434
import org.elasticsearch.cluster.service.ClusterService;
3535
import org.elasticsearch.common.settings.Settings;
36+
import org.elasticsearch.common.unit.TimeValue;
3637
import org.elasticsearch.common.util.concurrent.ConcurrentCollections;
3738
import org.elasticsearch.index.shard.ShardId;
3839
import org.elasticsearch.indices.recovery.PeerRecoverySourceService;
@@ -117,7 +118,7 @@ public void testCloseWhileRelocatingShards() throws Exception {
117118
indices[i] = indexName;
118119
}
119120

120-
ensureGreen(indices);
121+
ensureGreen(TimeValue.timeValueSeconds(60L),indices);
121122
assertAcked(client().admin().cluster().prepareUpdateSettings()
122123
.setTransientSettings(Settings.builder()
123124
.put(EnableAllocationDecider.CLUSTER_ROUTING_REBALANCE_ENABLE_SETTING.getKey(), Rebalance.NONE.toString())));

0 commit comments

Comments
 (0)