Skip to content

Commit f0747e6

Browse files
author
Hendrik Muhs
committed
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
1 parent bd3a70d commit f0747e6

File tree

1 file changed

+3
-0
lines changed
  • x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration

1 file changed

+3
-0
lines changed

x-pack/plugin/transform/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/transform/integration/TransformRobustnessIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public void testTaskRemovalAfterInternalIndexGotDeleted() throws Exception {
9090

9191
// the task is gone
9292
assertEquals(0, getNumberOfTransformTasks());
93+
94+
// delete the transform because the task might have written a state doc, cleanup fails if the index isn't empty
95+
deleteTransform(transformId);
9396
}
9497

9598
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)