Skip to content

Commit ac6b936

Browse files
Enable BwC Tests after #43148 Backport (#44270)
* #43148 has been backported to `7.4` -> we can reenable these tests after adjusting the version in teh serialization logic
1 parent 4fd4fdd commit ac6b936

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ task verifyVersions {
160160
* after the backport of the backcompat code is complete.
161161
*/
162162

163-
boolean bwc_tests_enabled = false
164-
final String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/44261" /* place a PR link here when committing bwc changes */
163+
boolean bwc_tests_enabled = true
164+
final String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
165165
if (bwc_tests_enabled == false) {
166166
if (bwc_tests_disabled_issue.isEmpty()) {
167167
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")

server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/SnapshotStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void readFrom(StreamInput in) throws IOException {
172172
includeGlobalState = in.readOptionalBoolean();
173173
final long startTime;
174174
final long time;
175-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
175+
if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
176176
startTime = in.readLong();
177177
time = in.readLong();
178178
} else {
@@ -191,7 +191,7 @@ public void writeTo(StreamOutput out) throws IOException {
191191
shard.writeTo(out);
192192
}
193193
out.writeOptionalBoolean(includeGlobalState);
194-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
194+
if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
195195
out.writeLong(stats.getStartTime());
196196
out.writeLong(stats.getTime());
197197
}

0 commit comments

Comments
 (0)