Skip to content

Commit 397b5f9

Browse files
authored
[Test] Skip testDelayWithALargeAmountOfShards on Windows (#137412) (#137614)
Windows can sometimes be slow at handling the large number of cluster state updates. Resolves: #137384
1 parent c3b6969 commit 397b5f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/internalClusterTest/java/org/elasticsearch/cluster/allocation/ClusterRerouteIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import org.apache.logging.log4j.Level;
1313
import org.apache.lucene.tests.util.LuceneTestCase;
14+
import org.apache.lucene.util.Constants;
1415
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
1516
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteRequest;
1617
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteResponse;
@@ -231,8 +232,8 @@ public void testDelayWithALargeAmountOfShards() throws Exception {
231232
logger.info("--> stopping node1");
232233
internalCluster().stopNode(node1);
233234

234-
// This might run slowly on older hardware
235-
ensureGreen(TimeValue.timeValueMinutes(2));
235+
// This might run slowly on older hardware and on Windows see #137384
236+
ensureGreen(TimeValue.timeValueMinutes(Constants.WINDOWS ? 4 : 2));
236237
}
237238

238239
private void rerouteWithAllocateLocalGateway(Settings commonSettings) throws Exception {

0 commit comments

Comments
 (0)