File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
server/src/internalClusterTest/java/org/elasticsearch/cluster Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 88
99package org .elasticsearch .cluster ;
1010
11+ import org .apache .lucene .util .Constants ;
1112import org .elasticsearch .action .ActionFuture ;
1213import org .elasticsearch .action .admin .cluster .health .ClusterHealthResponse ;
1314import org .elasticsearch .action .admin .indices .settings .put .UpdateSettingsRequest ;
@@ -317,9 +318,11 @@ public void testHealthOnMasterFailover() throws Exception {
317318 // Run a few health requests concurrent to master fail-overs against a data-node to make sure master failover is handled
318319 // without exceptions
319320 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 ;
320323 for (int i = 0 ; i < iterations ; ++i ) {
321324 responseFutures .add (client (node ).admin ().cluster ().prepareHealth ().setWaitForEvents (Priority .LANGUID )
322- .setWaitForGreenStatus ().setMasterNodeTimeout (TimeValue .timeValueMinutes (1 )).execute ());
325+ .setWaitForGreenStatus ().setMasterNodeTimeout (TimeValue .timeValueMinutes (timeoutMinutes )).execute ());
323326 internalCluster ().restartNode (internalCluster ().getMasterName (), InternalTestCluster .EMPTY_CALLBACK );
324327 }
325328 if (withIndex ) {
You can’t perform that action at this time.
0 commit comments