From 8b7100eb1fbd6ed8fa29a4fe566420ced5045668 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Tue, 8 Oct 2019 17:10:16 +0200 Subject: [PATCH] Don't remove indices to avoid monitoring from intermittently failing to index monitoring docs. --- .../elasticsearch/test/enrich/CommonEnrichRestTestCase.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java b/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java index 50f2ff94718..42107caed4c 100644 --- a/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java +++ b/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java @@ -41,6 +41,12 @@ public abstract class CommonEnrichRestTestCase extends ESRestTestCase { } } + @Override + protected boolean preserveIndicesUponCompletion() { + // In order to avoid monitoring from failing exporting docs to monitor index. + return true; + } + private void setupGenericLifecycleTest(boolean deletePipeilne) throws Exception { // Create the policy: Request putPolicyRequest = new Request("PUT", "/_enrich/policy/my_policy");