Skip to content

Commit

Permalink
Don't try to disable ML on incompatible versions (#89565) (#89582)
Browse files Browse the repository at this point in the history
Follow up to #89517 to ensure we don't mistakenly pass the
`xpack.ml.enabled` flag on versions of ES that have no such setting.

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
mark-vieira and elasticmachine authored Aug 24, 2022
1 parent 0ceb822 commit 7cefb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/qa/repository-old-versions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ if (Os.isFamily(Os.FAMILY_WINDOWS)) {
false,
"path.repo: ${repoLocation}",
"path.data: ${dataPath}"
if ((version.onOrAfter('6.8.0') && Architecture.current() == Architecture.AARCH64) || BwcVersions.isMlCompatible(version) == false) {
if ((version.onOrAfter('6.8.0') && Architecture.current() == Architecture.AARCH64) || (version.onOrAfter("6.4.0") && BwcVersions.isMlCompatible(version) == false)) {
// We need to explicitly disable ML when running old ES versions on ARM or on systems with newer GLIBC
args 'xpack.ml.enabled: false'
}
Expand Down

0 comments on commit 7cefb9d

Please sign in to comment.