Skip to content

Commit

Permalink
Adjust serialization versions for migration metadata (#79530)
Browse files Browse the repository at this point in the history
Also re-enables BWC following the backport of #78951.
  • Loading branch information
gwbrown authored Oct 20, 2021
1 parent 6e611ac commit ca0d435
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,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/78951"
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 @@ -38,7 +38,7 @@
*/
public class FeatureMigrationResults implements Metadata.Custom {
public static final String TYPE = "system_index_migration";
private static final Version MIGRATION_ADDED_VERSION = Version.V_8_0_0;
public static final Version MIGRATION_ADDED_VERSION = Version.V_8_0_0;

private static final ParseField RESULTS_FIELD = new ParseField("results");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import java.io.IOException;

import static org.elasticsearch.upgrades.FeatureMigrationResults.MIGRATION_ADDED_VERSION;

/**
* The params used to initialize {@link SystemIndexMigrator} when it's initially kicked off.
*
Expand Down Expand Up @@ -62,7 +64,7 @@ public String getWriteableName() {

@Override
public Version getMinimalSupportedVersion() {
return Version.V_8_0_0;
return MIGRATION_ADDED_VERSION;
}

@Override public boolean equals(Object obj) {
Expand Down

0 comments on commit ca0d435

Please sign in to comment.