Skip to content

Commit 1ad5fc0

Browse files
committed
Increase ensureGreen() timeout in CloseWhileRelocatingShardsIT
Closes elastic#53544
1 parent 3ceb60b commit 1ad5fc0

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)