|
@@ -50,6 +50,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode;
|
|
|
import org.elasticsearch.cluster.node.DiscoveryNodes;
|
|
|
import org.elasticsearch.cluster.routing.OperationRouting;
|
|
|
import org.elasticsearch.cluster.routing.ShardRouting;
|
|
|
+import org.elasticsearch.cluster.routing.UnassignedInfo;
|
|
|
import org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider;
|
|
|
import org.elasticsearch.cluster.routing.allocation.decider.ThrottlingAllocationDecider;
|
|
|
import org.elasticsearch.common.Nullable;
|
|
@@ -482,6 +483,9 @@ public final class InternalTestCluster extends TestCluster {
|
|
|
builder.put(ScriptService.SCRIPT_CACHE_EXPIRE_SETTING, TimeValue.timeValueMillis(RandomInts.randomIntBetween(random, 750, 10000000)));
|
|
|
}
|
|
|
|
|
|
+ // always default delayed allocation to 0 to make sure we have tests are not delayed
|
|
|
+ builder.put(UnassignedInfo.INDEX_DELAYED_NODE_LEFT_TIMEOUT_SETTING, 0);
|
|
|
+
|
|
|
return builder.build();
|
|
|
}
|
|
|
|