From dcb3b2c18ab221e44bb4e2e85638221ed1d394cc Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 22 Jul 2019 14:39:41 +0100 Subject: [PATCH] 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 --- .../action/admin/cluster/tasks/PendingTasksBlocksIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/action/admin/cluster/tasks/PendingTasksBlocksIT.java b/server/src/test/java/org/elasticsearch/action/admin/cluster/tasks/PendingTasksBlocksIT.java index d3c4db8d5ad..63900424bb9 100644 --- a/server/src/test/java/org/elasticsearch/action/admin/cluster/tasks/PendingTasksBlocksIT.java +++ b/server/src/test/java/org/elasticsearch/action/admin/cluster/tasks/PendingTasksBlocksIT.java @@ -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(); }