Skip to content
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

[ML] fixing datafeed bwc tests #52908

Merged
merged 3 commits into from
Feb 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public DatafeedConfig(StreamInput in) throws IOException {
} else {
maxEmptySearches = null;
}
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_7_0)) {
indicesOptions = IndicesOptions.readIndicesOptions(in);
} else {
indicesOptions = SearchRequest.DEFAULT_INDICES_OPTIONS;
Expand Down Expand Up @@ -448,7 +448,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_5_0)) {
out.writeOptionalVInt(maxEmptySearches);
}
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
indicesOptions.writeIndicesOptions(out);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public DatafeedUpdate(StreamInput in) throws IOException {
} else {
maxEmptySearches = null;
}
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_7_0)) {
indicesOptions = in.readBoolean() ? IndicesOptions.readIndicesOptions(in) : null;
} else {
indicesOptions = null;
Expand Down Expand Up @@ -207,7 +207,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_5_0)) {
out.writeOptionalInt(maxEmptySearches);
}
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
if (indicesOptions != null) {
out.writeBoolean(true);
indicesOptions.writeIndicesOptions(out);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
setup:
- skip:
reason: "Waiting for backport of https://github.com/elastic/elasticsearch/pull/52793"
version: all

---
"Test old cluster datafeed without aggs":
- skip:
version: "all"
reason: "Awaits fix: https://github.com/elastic/elasticsearch/issues/52739"
- do:
ml.get_datafeeds:
datafeed_id: old-cluster-datafeed-without-aggs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
setup:
- skip:
reason: "Waiting for backport of https://github.com/elastic/elasticsearch/pull/52793"
version: all
---
"Put job and datafeed without aggs in old cluster":

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
setup:
- skip:
reason: "Waiting for backport of https://github.com/elastic/elasticsearch/pull/52793"
version: all
- do:
cluster.health:
wait_for_status: green
Expand Down