Browse Source

Fix old respository version tests on AARCH64 (#80452)

When running ES 6.8 on ARM, as is the case for the
`repository-old-versions` tests, we need to explicitly disable ML or
else the node will error on startup.
Mark Vieira 3 years ago
parent
commit
a287778afc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      qa/repository-old-versions/build.gradle

+ 4 - 0
qa/repository-old-versions/build.gradle

@@ -92,6 +92,10 @@ if (Os.isFamily(Os.FAMILY_WINDOWS)) {
         unzip.get().temporaryDir,
         false,
         "path.repo: ${repoLocation}"
+      if (version.onOrAfter('6.8.0') && Architecture.current() == Architecture.AARCH64) {
+        // We need to explicitly disable ML when running old ES versions on ARM
+        args 'xpack.ml.enabled: false'
+      }
       maxWaitInSeconds 60
       waitCondition = { fixture, ant ->
         // the fixture writes the ports file when Elasticsearch's HTTP service