Skip to content

Commit

Permalink
Re-enable BWC tests after backport of elastic#76771
Browse files Browse the repository at this point in the history
Adjusts the wire compatibility constraints and reverts commit
18e657a.
  • Loading branch information
DaveCTurner committed Aug 23, 2021
1 parent 18e657a commit a1089b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,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/76771"
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 @@ -45,8 +45,8 @@
"Master timing stats":
- skip:
features: [arbitrary_key]
version: "- 7.99.99"
reason: "master timing stats added in 8.0.0"
version: "- 7.15.99"
reason: "master timing stats added in 7.16.0"

- do:
nodes.info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public ClusterStateUpdateStats(StreamInput in) throws IOException {

@Override
public void writeTo(StreamOutput out) throws IOException {
assert out.getVersion().onOrAfter(Version.V_8_0_0) : out.getVersion();
assert out.getVersion().onOrAfter(Version.V_7_16_0) : out.getVersion();
out.writeVLong(unchangedTaskCount);
out.writeVLong(publicationSuccessCount);
out.writeVLong(publicationFailureCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public DiscoveryStats(
public DiscoveryStats(StreamInput in) throws IOException {
queueStats = in.readOptionalWriteable(PendingClusterStateStats::new);
publishStats = in.readOptionalWriteable(PublishClusterStateStats::new);
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_16_0)) {
clusterStateUpdateStats = in.readOptionalWriteable(ClusterStateUpdateStats::new);
} else {
clusterStateUpdateStats = null;
Expand All @@ -50,7 +50,7 @@ public DiscoveryStats(StreamInput in) throws IOException {
public void writeTo(StreamOutput out) throws IOException {
out.writeOptionalWriteable(queueStats);
out.writeOptionalWriteable(publishStats);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_16_0)) {
out.writeOptionalWriteable(clusterStateUpdateStats);
}
}
Expand Down

0 comments on commit a1089b9

Please sign in to comment.