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:
Igor Motov 2013-02-05 14:53:46 -05:00
parent 8277833f8d
commit ed09ba0a18
1 changed files with 2 additions and 2 deletions

View File

@ -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();