Fix testPendingTasksWithClusterNotRecoveredBlock

In 7.x we cannot start a new master-eligible node before the cluster has formed
since we first try and update minimum_master_nodes and this is blocked. This
commit changes the test to start a data-only node so that no such adjustment is
necessary.

Relates #44685
This commit is contained in:
David Turner 2019-07-22 14:39:41 +01:00
parent f5b2fd2f1a
commit dcb3b2c18a
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class PendingTasksBlocksIT extends ESIntegTestCase {
assertNotNull(client().admin().cluster().preparePendingClusterTasks().get().getPendingTasks());
// starting one more node allows the cluster to recover
internalCluster().startNode();
internalCluster().startDataOnlyNode(); // cannot update minimum_master_nodes before the cluster has formed
ensureGreen();
}