Skip to content

Commit 7cefb9d

Browse files
Don't try to disable ML on incompatible versions (#89565) (#89582)
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]>
1 parent 0ceb822 commit 7cefb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/qa/repository-old-versions/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if (Os.isFamily(Os.FAMILY_WINDOWS)) {
115115
false,
116116
"path.repo: ${repoLocation}",
117117
"path.data: ${dataPath}"
118-
if ((version.onOrAfter('6.8.0') && Architecture.current() == Architecture.AARCH64) || BwcVersions.isMlCompatible(version) == false) {
118+
if ((version.onOrAfter('6.8.0') && Architecture.current() == Architecture.AARCH64) || (version.onOrAfter("6.4.0") && BwcVersions.isMlCompatible(version) == false)) {
119119
// We need to explicitly disable ML when running old ES versions on ARM or on systems with newer GLIBC
120120
args 'xpack.ml.enabled: false'
121121
}

0 commit comments

Comments
 (0)