Skip to content

Commit

Permalink
Increase ensureGreen() timeout in CloseWhileRelocatingShardsIT
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Mar 23, 2020
1 parent 3ceb60b commit 1ad5fc0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.elasticsearch.cluster.routing.allocation.decider.ThrottlingAllocationDecider;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.util.concurrent.ConcurrentCollections;
import org.elasticsearch.index.shard.ShardId;
import org.elasticsearch.indices.recovery.PeerRecoverySourceService;
Expand Down Expand Up @@ -117,7 +118,7 @@ public void testCloseWhileRelocatingShards() throws Exception {
indices[i] = indexName;
}

ensureGreen(indices);
ensureGreen(TimeValue.timeValueSeconds(60L),indices);
assertAcked(client().admin().cluster().prepareUpdateSettings()
.setTransientSettings(Settings.builder()
.put(EnableAllocationDecider.CLUSTER_ROUTING_REBALANCE_ENABLE_SETTING.getKey(), Rebalance.NONE.toString())));
Expand Down

0 comments on commit 1ad5fc0

Please sign in to comment.