From ed09ba0a18ebe720db32b78e5146d4383525d014 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Tue, 5 Feb 2013 14:53:46 -0500 Subject: [PATCH] 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. --- .../test/integration/percolator/RecoveryPercolatorTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java b/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java index 81bcb5286a8..8f8f9ecb61e 100644 --- a/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java +++ b/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java @@ -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();