-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESQL: Fix mixed cluster tests #107680
ESQL: Fix mixed cluster tests #107680
Conversation
Do not send version as it was not an allowed parameter back then.
Pinging @elastic/es-analytical-engine (Team:Analytics) |
String versionString = null; | ||
Set<EsqlVersion> versions = EsqlSpecTestCase.availableVersions(); | ||
if (versions.isEmpty() == false) { | ||
// Use the latest released version or SNAPSHOT, if available. | ||
versionString = versions.stream().max(Comparator.comparingInt(EsqlVersion::id)).toString(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were sending a version in the JSON body on bwc tests; the version parameter is only available on 8.13.3+, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C.f. corresponding entry in build.gradle
:
elasticsearch/x-pack/plugin/esql/qa/server/mixed-cluster/build.gradle
Lines 33 to 36 in f7349e2
// Versions on and after 8.13.3 will get a `version` parameter | |
def versionUnsupported = bwcVersion -> { | |
return bwcVersion.before(Version.fromString("8.13.3")); | |
} |
@@ -1552,7 +1552,7 @@ s2point1:d | s_mv:i | languages:i | |||
2.1 | 3 | null | |||
; | |||
|
|||
evalOverridingKey | |||
evalOverridingKey#[skip:-8.13.1,reason:fixed in 8.13.2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in #107131, which was backported to 8.13.2 but not earlier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
* Fix a test where pre-8.13 nodes in mixed cluster tests were sent a language version (added in 8.13.3). * Skip a test for a fix introduced in 8.13.2 on older clusters.
💚 Backport successful
|
Fix #107618.