Skip to content

Commit 4e36972

Browse files
authored
Re-enable BWC tests for #53268 (#53275)
1 parent 2776642 commit 4e36972

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
@@ -220,8 +220,8 @@ task verifyVersions {
220220
* after the backport of the backcompat code is complete.
221221
*/
222222

223-
boolean bwc_tests_enabled = false
224-
final String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/53268" /* place a PR link here when committing bwc changes */
223+
boolean bwc_tests_enabled = true
224+
final String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
225225
if (bwc_tests_enabled == false) {
226226
if (bwc_tests_disabled_issue.isEmpty()) {
227227
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/restore/RestoreSnapshotRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public RestoreSnapshotRequest(StreamInput in) throws IOException {
9494
includeGlobalState = in.readBoolean();
9595
partial = in.readBoolean();
9696
includeAliases = in.readBoolean();
97-
if (in.getVersion().before(Version.V_8_0_0)) {
97+
if (in.getVersion().before(Version.V_7_7_0)) {
9898
readSettingsFromStream(in); // formerly the unused settings field
9999
}
100100
indexSettings = readSettingsFromStream(in);
@@ -114,7 +114,7 @@ public void writeTo(StreamOutput out) throws IOException {
114114
out.writeBoolean(includeGlobalState);
115115
out.writeBoolean(partial);
116116
out.writeBoolean(includeAliases);
117-
if (out.getVersion().before(Version.V_8_0_0)) {
117+
if (out.getVersion().before(Version.V_7_7_0)) {
118118
writeSettingsToStream(Settings.EMPTY, out); // formerly the unused settings field
119119
}
120120
writeSettingsToStream(indexSettings, out);

0 commit comments

Comments
 (0)