File tree 1 file changed +3
-3
lines changed
src/test/java/org/elasticsearch/recovery
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -337,14 +337,14 @@ public void testMoveShardsWhileRelocation() throws Exception {
337
337
final String indexName = "test" ;
338
338
339
339
ListenableFuture <String > blueFuture = internalCluster ().startNodeAsync (ImmutableSettings .builder ().put ("node.color" , "blue" ).build ());
340
- internalCluster ().startNodeAsync (ImmutableSettings .builder ().put ("node.color" , "green" ).build ());
341
340
ListenableFuture <String > redFuture = internalCluster ().startNodeAsync (ImmutableSettings .builder ().put ("node.color" , "red" ).build ());
341
+ internalCluster ().startNode (ImmutableSettings .builder ().put ("node.color" , "green" ).build ());
342
+ final String blueNodeName = blueFuture .get ();
343
+ final String redNodeName = redFuture .get ();
342
344
343
345
ClusterHealthResponse response = client ().admin ().cluster ().prepareHealth ().setWaitForNodes (">=3" ).get ();
344
346
assertThat (response .isTimedOut (), is (false ));
345
347
346
- String blueNodeName = blueFuture .get ();
347
- final String redNodeName = redFuture .get ();
348
348
349
349
client ().admin ().indices ().prepareCreate (indexName )
350
350
.setSettings (
You can’t perform that action at this time.
0 commit comments