Improve stability of RecoveryPercolatorTests
Without "action.wait_on_mapping_change" setting set to true, the test node might get shutdown before updated mapping is saved.
This commit is contained in:
parent
8277833f8d
commit
ed09ba0a18
|
@ -62,7 +62,7 @@ public class RecoveryPercolatorTests extends AbstractNodesTests {
|
|||
cleanAndCloseNodes();
|
||||
|
||||
logger.info("--> starting 1 nodes");
|
||||
startNode("node1", settingsBuilder().put("gateway.type", "local"));
|
||||
startNode("node1", settingsBuilder().put("gateway.type", "local").put("action.wait_on_mapping_change", true));
|
||||
|
||||
Client client = client("node1");
|
||||
client.admin().indices().prepareCreate("test").setSettings(settingsBuilder().put("index.number_of_shards", 1)).execute().actionGet();
|
||||
|
@ -108,7 +108,7 @@ public class RecoveryPercolatorTests extends AbstractNodesTests {
|
|||
cleanAndCloseNodes();
|
||||
|
||||
logger.info("--> starting 1 nodes");
|
||||
startNode("node1", settingsBuilder().put("gateway.type", "local"));
|
||||
startNode("node1", settingsBuilder().put("gateway.type", "local").put("action.wait_on_mapping_change", true));
|
||||
|
||||
Client client = client("node1");
|
||||
client.admin().indices().prepareCreate("test").setSettings(settingsBuilder().put("index.number_of_shards", 1)).execute().actionGet();
|
||||
|
|
Loading…
Reference in New Issue