From 148688a99162cfeb75ec4e899125a11c446f4e49 Mon Sep 17 00:00:00 2001 From: Colin Goodheart-Smithe Date: Wed, 3 Jan 2018 12:28:59 +0000 Subject: [PATCH] Reduces poll time to 1s for integ test `IndexLifecycleInitialisationIT.testMasterFailover()` intermittently failed because the timeout of 10 seconds to check if the index had been deleted was not long enough sometimes with the poll interval set to 3 seconds. This change sets the poll interval to 1 seconds for the test so that the lifecycle is more responsive. This also means the default value for the poll interval can be safely changed without affecting the test. --- .../xpack/indexlifecycle/IndexLifecycleInitialisationIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugin/src/test/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleInitialisationIT.java b/x-pack/plugin/src/test/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleInitialisationIT.java index d04d6221c76..e7ca78d30b8 100644 --- a/x-pack/plugin/src/test/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleInitialisationIT.java +++ b/x-pack/plugin/src/test/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleInitialisationIT.java @@ -48,6 +48,7 @@ public class IndexLifecycleInitialisationIT extends ESIntegTestCase { protected Settings nodeSettings(int nodeOrdinal) { Settings.Builder settings = Settings.builder().put(super.nodeSettings(nodeOrdinal)); settings.put(XPackSettings.INDEX_LIFECYCLE_ENABLED.getKey(), true); + settings.put(IndexLifecycle.LIFECYCLE_POLL_INTERVAL_SETTING.getKey(), "1s"); settings.put(XPackSettings.MACHINE_LEARNING_ENABLED.getKey(), false); settings.put(XPackSettings.SECURITY_ENABLED.getKey(), false); settings.put(XPackSettings.WATCHER_ENABLED.getKey(), false);