Skip to content

Commit 150a0d5

Browse files
committed
[ML] ML BWC tests cannot run against pre-ML versions (#37136)
1 parent d98ac25 commit 150a0d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/MlMigrationFullClusterRestartIT.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ private void createTestIndex() throws IOException {
7373
}
7474

7575
public void testMigration() throws Exception {
76+
// v5.5.0 is the first version where ml jobs can be
77+
// retained after upgrade
78+
if (getOldClusterVersion().before(Version.V_5_5_0)) {
79+
return;
80+
}
81+
7682
if (isRunningAgainstOldCluster()) {
7783
createTestIndex();
7884
oldClusterTests();

0 commit comments

Comments
 (0)