File tree 1 file changed +4
-1
lines changed
server/src/internalClusterTest/java/org/elasticsearch/cluster 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
package org .elasticsearch .cluster ;
10
10
11
+ import org .apache .lucene .util .Constants ;
11
12
import org .elasticsearch .action .ActionFuture ;
12
13
import org .elasticsearch .action .admin .cluster .health .ClusterHealthResponse ;
13
14
import org .elasticsearch .action .admin .indices .settings .put .UpdateSettingsRequest ;
@@ -317,9 +318,11 @@ public void testHealthOnMasterFailover() throws Exception {
317
318
// Run a few health requests concurrent to master fail-overs against a data-node to make sure master failover is handled
318
319
// without exceptions
319
320
final int iterations = withIndex ? 10 : 20 ;
321
+ // CI darwin workers are sometimes very slow, give them extra time.
322
+ int timeoutMinutes = Constants .MAC_OS_X ? 2 : 1 ;
320
323
for (int i = 0 ; i < iterations ; ++i ) {
321
324
responseFutures .add (client (node ).admin ().cluster ().prepareHealth ().setWaitForEvents (Priority .LANGUID )
322
- .setWaitForGreenStatus ().setMasterNodeTimeout (TimeValue .timeValueMinutes (1 )).execute ());
325
+ .setWaitForGreenStatus ().setMasterNodeTimeout (TimeValue .timeValueMinutes (timeoutMinutes )).execute ());
323
326
internalCluster ().restartNode (internalCluster ().getMasterName (), InternalTestCluster .EMPTY_CALLBACK );
324
327
}
325
328
if (withIndex ) {
You can’t perform that action at this time.
0 commit comments