Fix testRelocationEstablishedPeerRecoveryRetentionLeases (#50673)

The redNodes are calculated incorrectly.

Closes #50660
This commit is contained in:
Nhat Nguyen 2020-01-06 13:30:08 -05:00
parent 72a405fafb
commit 926c0aa74c
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ public class RelocationIT extends ESIntegTestCase {
Stream.generate(() -> Settings.builder().put("node.attr.color", "red").build()).limit(halfNodes)).toArray(Settings[]::new);
List<String> nodes = internalCluster().startNodes(nodeSettings);
String[] blueNodes = nodes.subList(0, halfNodes).toArray(new String[0]);
String[] redNodes = nodes.subList(0, halfNodes).toArray(new String[0]);
String[] redNodes = nodes.subList(halfNodes, nodes.size()).toArray(new String[0]);
ensureStableCluster(halfNodes * 2);
assertAcked(
client().admin().indices().prepareCreate(indexName).setSettings(Settings.builder()