Skip to content

Commit

Permalink
Unmute bwc tests and adjust bwc serialization in DiscoveryStats (#78917)
Browse files Browse the repository at this point in the history
See #77552
  • Loading branch information
martijnvg authored Oct 11, 2021
1 parent 216f135 commit 11840f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 11840f0

Please sign in to comment.