Skip to content

Commit

Permalink
[ML] Adjust migration full cluster restart tests based on old cluster…
Browse files Browse the repository at this point in the history
… version elastic#37118
  • Loading branch information
davidkyle authored Jan 3, 2019
1 parent 13649aa commit fc49d88
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -157,6 +156,12 @@ private void waitForDatafeedToBeAssigned(String datafeedId) throws Exception {
@SuppressWarnings("unchecked")
private void waitForMigration(List<String> expectedMigratedJobs, List<String> expectedMigratedDatafeeds,
List<String> unMigratedJobs, List<String> 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");
Expand Down

0 comments on commit fc49d88

Please sign in to comment.