diff --git a/build.gradle b/build.gradle index ae1befdbdc516..a6be800654390 100644 --- a/build.gradle +++ b/build.gradle @@ -134,9 +134,9 @@ tasks.register("verifyVersions") { * after the backport of the backcompat code is complete. */ -boolean bwc_tests_enabled = false +boolean bwc_tests_enabled = true // place a PR link here when committing bwc changes: -String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/77552" +String bwc_tests_disabled_issue = "" /* * FIPS 140-2 behavior was fixed in 7.11.0. Before that there is no way to run elasticsearch in a * JVM that is properly configured to be in fips mode with BCFIPS. For now we need to disable diff --git a/server/src/main/java/org/elasticsearch/discovery/DiscoveryStats.java b/server/src/main/java/org/elasticsearch/discovery/DiscoveryStats.java index 7606fd9461122..0bb3c8f24979d 100644 --- a/server/src/main/java/org/elasticsearch/discovery/DiscoveryStats.java +++ b/server/src/main/java/org/elasticsearch/discovery/DiscoveryStats.java @@ -47,7 +47,7 @@ public DiscoveryStats(StreamInput in) throws IOException { } else { clusterStateUpdateStats = null; } - if (in.getVersion().onOrAfter(Version.V_8_0_0)) { + if (in.getVersion().onOrAfter(Version.V_7_16_0)) { applierRecordingStats = in.readOptionalWriteable(ClusterApplierRecordingService.Stats::new); } else { applierRecordingStats = null; @@ -61,7 +61,7 @@ public void writeTo(StreamOutput out) throws IOException { if (out.getVersion().onOrAfter(Version.V_7_16_0)) { out.writeOptionalWriteable(clusterStateUpdateStats); } - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_16_0)) { out.writeOptionalWriteable(applierRecordingStats); } }