diff --git a/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java b/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java index ca9532d8dc7d..db825b1fc24f 100644 --- a/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java +++ b/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java @@ -107,7 +107,8 @@ protected String indexPattern(String pattern) { } @After - private void cleanup() throws IOException { + public void cleanup() throws Exception { + waitForPendingTasks(adminClient(), taskName -> taskName.startsWith("indices:data/read/sql/async/get")); try { deleteTestIndex(); } catch (ResponseException e) { @@ -1531,7 +1532,6 @@ public void testAsyncTextWait() throws IOException { } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/80089") public void testAsyncTextPaginated() throws IOException, InterruptedException { final Map acceptMap = Map.of("txt", "text/plain", "csv", "text/csv", "tsv", "text/tab-separated-values"); final int fetchSize = randomIntBetween(1, 10);