Skip to content

Commit b62ab7e

Browse files
droberts195elasticmachinebenwtrent
authored
[ML] Removing last traces of system_annotations_retention_days (#76115)
* [ML] Removing last traces of system_annotations_retention_days Remove the last bits of code after the backport PR (#76113) is merged. Followup to #76096 * unmute bwc tests Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Benjamin Trent <[email protected]>
1 parent 117e74b commit b62ab7e

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ tasks.register("verifyVersions") {
145145
* after the backport of the backcompat code is complete.
146146
*/
147147

148-
boolean bwc_tests_enabled = false
148+
boolean bwc_tests_enabled = true
149149
// place a PR link here when committing bwc changes:
150-
String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/76096"
150+
String bwc_tests_disabled_issue = ""
151151
/*
152152
* FIPS 140-2 behavior was fixed in 7.11.0. Before that there is no way to run elasticsearch in a
153153
* JVM that is properly configured to be in fips mode with BCFIPS. For now we need to disable

x-pack/plugin/build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,6 @@ def v7compatibilityNotSupportedTests = {
145145
'rollup/start_job/Test start job twice',
146146
'service_accounts/10_basic/Test service account tokens', // https://github.com/elastic/elasticsearch/pull/75200
147147

148-
// temporarily muted awaiting backport of https://github.com/elastic/elasticsearch/pull/76097
149-
'ml/delete_expired_data/Test delete expired data with body parameters',
150-
'ml/delete_expired_data/Test delete expired data with no body',
151-
'ml/delete_expired_data/Test delete expired data with path parameters',
152-
'ml/delete_expired_data/Test delete expired data with unknown job id',
153-
'ml/jobs_crud/Test update job',
154-
155148
// a type field was added to cat.ml_trained_models #73660, this is a backwards compatible change.
156149
// still this is a cat api, and we don't support them with rest api compatibility. (the test would be very hard to transform too)
157150
'ml/trained_model_cat_apis/Test cat trained models'

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config/Job.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,6 @@ public Job(StreamInput in) throws IOException {
244244
modelSnapshotRetentionDays = in.readOptionalLong();
245245
dailyModelSnapshotRetentionAfterDays = in.readOptionalLong();
246246
resultsRetentionDays = in.readOptionalLong();
247-
if (in.getVersion().onOrAfter(Version.V_7_15_0) && in.getVersion().before(Version.V_8_0_0)) {
248-
/* systemAnnotationsRetentionDays = */ in.readOptionalLong();
249-
}
250247
Map<String, Object> readCustomSettings = in.readMap();
251248
customSettings = readCustomSettings == null ? null : Collections.unmodifiableMap(readCustomSettings);
252249
modelSnapshotId = in.readOptionalString();
@@ -529,9 +526,6 @@ public void writeTo(StreamOutput out) throws IOException {
529526
out.writeOptionalLong(modelSnapshotRetentionDays);
530527
out.writeOptionalLong(dailyModelSnapshotRetentionAfterDays);
531528
out.writeOptionalLong(resultsRetentionDays);
532-
if (out.getVersion().onOrAfter(Version.V_7_15_0) && out.getVersion().before(Version.V_8_0_0)) {
533-
out.writeOptionalLong(resultsRetentionDays);
534-
}
535529
out.writeMap(customSettings);
536530
out.writeOptionalString(modelSnapshotId);
537531
if (modelSnapshotMinVersion != null) {
@@ -779,9 +773,6 @@ public Builder(StreamInput in) throws IOException {
779773
modelSnapshotRetentionDays = in.readOptionalLong();
780774
dailyModelSnapshotRetentionAfterDays = in.readOptionalLong();
781775
resultsRetentionDays = in.readOptionalLong();
782-
if (in.getVersion().onOrAfter(Version.V_7_15_0) && in.getVersion().before(Version.V_8_0_0)) {
783-
/* systemAnnotationsRetentionDays = */ in.readOptionalLong();
784-
}
785776
customSettings = in.readMap();
786777
modelSnapshotId = in.readOptionalString();
787778
if (in.readBoolean()) {
@@ -1009,9 +1000,6 @@ public void writeTo(StreamOutput out) throws IOException {
10091000
out.writeOptionalLong(modelSnapshotRetentionDays);
10101001
out.writeOptionalLong(dailyModelSnapshotRetentionAfterDays);
10111002
out.writeOptionalLong(resultsRetentionDays);
1012-
if (out.getVersion().onOrAfter(Version.V_7_15_0) && out.getVersion().before(Version.V_8_0_0)) {
1013-
out.writeOptionalLong(resultsRetentionDays);
1014-
}
10151003
out.writeMap(customSettings);
10161004
out.writeOptionalString(modelSnapshotId);
10171005
if (modelSnapshotMinVersion != null) {

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config/JobUpdate.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ public JobUpdate(StreamInput in) throws IOException {
143143
modelSnapshotRetentionDays = in.readOptionalLong();
144144
dailyModelSnapshotRetentionAfterDays = in.readOptionalLong();
145145
resultsRetentionDays = in.readOptionalLong();
146-
if (in.getVersion().onOrAfter(Version.V_7_15_0) && in.getVersion().before(Version.V_8_0_0)) {
147-
/* systemAnnotationsRetentionDays = */ in.readOptionalLong();
148-
}
149146
if (in.readBoolean()) {
150147
categorizationFilters = in.readStringList();
151148
} else {
@@ -192,9 +189,6 @@ public void writeTo(StreamOutput out) throws IOException {
192189
out.writeOptionalLong(modelSnapshotRetentionDays);
193190
out.writeOptionalLong(dailyModelSnapshotRetentionAfterDays);
194191
out.writeOptionalLong(resultsRetentionDays);
195-
if (out.getVersion().onOrAfter(Version.V_7_15_0) && out.getVersion().before(Version.V_8_0_0)) {
196-
out.writeOptionalLong(resultsRetentionDays);
197-
}
198192
out.writeBoolean(categorizationFilters != null);
199193
if (categorizationFilters != null) {
200194
out.writeStringCollection(categorizationFilters);

0 commit comments

Comments
 (0)