Skip to content

Commit 254aa2f

Browse files
author
Andrey Ershov
committed
randomization
1 parent 0591d54 commit 254aa2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ public void testNotWaitForQuorumCopies() throws Exception {
349349
client().prepareIndex("test", "type1").setSource(jsonBuilder()
350350
.startObject().field("field", "value1").endObject()).get();
351351
logger.info("--> removing 2 nodes from cluster");
352-
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodes.get(1)));
353-
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodes.get(2)));
352+
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodes.get(1), nodes.get(2)));
353+
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodes.get(1), nodes.get(2)));
354354
internalCluster().restartRandomDataNode();
355355
logger.info("--> checking that index still gets allocated with only 1 shard copy being available");
356356
ensureYellow("test");

0 commit comments

Comments
 (0)