Fix testRelocationEstablishedPeerRecoveryRetentionLeases (#50673)
The redNodes are calculated incorrectly. Closes #50660
This commit is contained in:
parent
72a405fafb
commit
926c0aa74c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue