File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
server/src/test/java/org/elasticsearch/cluster/routing Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -329,11 +329,11 @@ public void testForceAllocatePrimaryOnNoDecision() throws Exception {
329329 public void testPrimaryReplicaResyncFailed () throws Exception {
330330 String master = internalCluster ().startMasterOnlyNode (Settings .EMPTY );
331331 final int numberOfReplicas = between (2 , 3 );
332+ final String oldPrimary = internalCluster ().startDataOnlyNode ();
332333 assertAcked (
333334 prepareCreate ("test" , Settings .builder ().put (indexSettings ())
334335 .put (SETTING_NUMBER_OF_SHARDS , 1 )
335336 .put (SETTING_NUMBER_OF_REPLICAS , numberOfReplicas )));
336- final String oldPrimary = internalCluster ().startDataOnlyNode ();
337337 final ShardId shardId = new ShardId (clusterService ().state ().metaData ().index ("test" ).getIndex (), 0 );
338338 final Set <String > replicaNodes = new HashSet <>(internalCluster ().startDataOnlyNodes (numberOfReplicas ));
339339 ensureGreen ();
You can’t perform that action at this time.
0 commit comments