From f0747e607d23b92c00870a7392776d66847550c7 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Sun, 16 Feb 2020 11:16:54 +0100 Subject: [PATCH] delete the transform to delete any docs which might have been written by the (#52360) delete the transform to delete any docs which might have been written by the task after deleting the index fixes #51347 --- .../xpack/transform/integration/TransformRobustnessIT.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration/TransformRobustnessIT.java b/x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration/TransformRobustnessIT.java index 459f2e9e568..9d069eb5f93 100644 --- a/x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration/TransformRobustnessIT.java +++ b/x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration/TransformRobustnessIT.java @@ -90,6 +90,9 @@ public class TransformRobustnessIT extends TransformRestTestCase { // the task is gone assertEquals(0, getNumberOfTransformTasks()); + + // delete the transform because the task might have written a state doc, cleanup fails if the index isn't empty + deleteTransform(transformId); } @SuppressWarnings("unchecked")