Skip to content

Commit 0329f5b

Browse files
committed
start the primary node first
1 parent a902052 commit 0329f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/cluster/routing/PrimaryAllocationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)