diff --git a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/MlMigrationFullClusterRestartIT.java b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/MlMigrationFullClusterRestartIT.java index 36857635951e2..e71e116ca6695 100644 --- a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/MlMigrationFullClusterRestartIT.java +++ b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/MlMigrationFullClusterRestartIT.java @@ -69,7 +69,6 @@ private void createTestIndex() throws IOException { client().performRequest(createTestIndex); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/36816") public void testMigration() throws Exception { if (isRunningAgainstOldCluster()) { createTestIndex(); @@ -157,6 +156,12 @@ private void waitForDatafeedToBeAssigned(String datafeedId) throws Exception { @SuppressWarnings("unchecked") private void waitForMigration(List expectedMigratedJobs, List expectedMigratedDatafeeds, List unMigratedJobs, List unMigratedDatafeeds) throws Exception { + + // After v6.6.0 jobs are created in the index so no migration will take place + if (getOldClusterVersion().onOrAfter(Version.V_6_6_0)) { + return; + } + assertBusy(() -> { // wait for the eligible configs to be moved from the clusterstate Request getClusterState = new Request("GET", "/_cluster/state/metadata");