diff --git a/server/src/main/java/org/elasticsearch/gateway/MetaDataStateFormat.java b/server/src/main/java/org/elasticsearch/gateway/MetaDataStateFormat.java index e048512e638..237b36b53d4 100644 --- a/server/src/main/java/org/elasticsearch/gateway/MetaDataStateFormat.java +++ b/server/src/main/java/org/elasticsearch/gateway/MetaDataStateFormat.java @@ -29,19 +29,17 @@ import org.apache.lucene.store.IOContext; import org.apache.lucene.store.IndexInput; import org.apache.lucene.store.OutputStreamIndexOutput; import org.apache.lucene.store.SimpleFSDirectory; -import org.elasticsearch.common.logging.Loggers; -import org.elasticsearch.core.internal.io.IOUtils; import org.elasticsearch.ExceptionsHelper; -import org.elasticsearch.common.bytes.BytesArray; +import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.common.lucene.store.IndexOutputOutputStream; import org.elasticsearch.common.lucene.store.InputStreamIndexInput; import org.elasticsearch.common.xcontent.LoggingDeprecationHandler; import org.elasticsearch.common.xcontent.NamedXContentRegistry; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentFactory; -import org.elasticsearch.common.xcontent.XContentHelper; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; +import org.elasticsearch.core.internal.io.IOUtils; import java.io.FileNotFoundException; import java.io.IOException; @@ -54,7 +52,6 @@ import java.nio.file.StandardCopyOption; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; @@ -70,9 +67,8 @@ public abstract class MetaDataStateFormat { public static final String STATE_FILE_EXTENSION = ".st"; private static final String STATE_FILE_CODEC = "state"; - private static final int MIN_COMPATIBLE_STATE_FILE_VERSION = 0; + private static final int MIN_COMPATIBLE_STATE_FILE_VERSION = 1; private static final int STATE_FILE_VERSION = 1; - private static final int STATE_FILE_VERSION_ES_2X_AND_BELOW = 0; private static final int BUFFER_SIZE = 4096; private final String prefix; private final Pattern stateFilePattern; @@ -186,16 +182,11 @@ public abstract class MetaDataStateFormat { try (IndexInput indexInput = dir.openInput(file.getFileName().toString(), IOContext.DEFAULT)) { // We checksum the entire file before we even go and parse it. If it's corrupted we barf right here. CodecUtil.checksumEntireFile(indexInput); - final int fileVersion = CodecUtil.checkHeader(indexInput, STATE_FILE_CODEC, MIN_COMPATIBLE_STATE_FILE_VERSION, - STATE_FILE_VERSION); + CodecUtil.checkHeader(indexInput, STATE_FILE_CODEC, MIN_COMPATIBLE_STATE_FILE_VERSION, STATE_FILE_VERSION); final XContentType xContentType = XContentType.values()[indexInput.readInt()]; if (xContentType != FORMAT) { throw new IllegalStateException("expected state in " + file + " to be " + FORMAT + " format but was " + xContentType); } - if (fileVersion == STATE_FILE_VERSION_ES_2X_AND_BELOW) { - // format version 0, wrote a version that always came from the content state file and was never used - indexInput.readLong(); // version currently unused - } long filePointer = indexInput.getFilePointer(); long contentSize = indexInput.length() - CodecUtil.footerLength() - filePointer; try (IndexInput slice = indexInput.slice("state_xcontent", filePointer, contentSize)) { @@ -263,10 +254,9 @@ public abstract class MetaDataStateFormat { * @param dataLocations the data-locations to try. * @return the latest state or null if no state was found. */ - public T loadLatestState(Logger logger, NamedXContentRegistry namedXContentRegistry, Path... dataLocations) throws IOException { + public T loadLatestState(Logger logger, NamedXContentRegistry namedXContentRegistry, Path... dataLocations) throws IOException { List files = new ArrayList<>(); long maxStateId = -1; - boolean maxStateIdIsLegacy = true; if (dataLocations != null) { // select all eligible files first for (Path dataLocation : dataLocations) { final Path stateDir = dataLocation.resolve(STATE_DIR_NAME); @@ -280,9 +270,7 @@ public abstract class MetaDataStateFormat { if (matcher.matches()) { final long stateId = Long.parseLong(matcher.group(1)); maxStateId = Math.max(maxStateId, stateId); - final boolean legacy = MetaDataStateFormat.STATE_FILE_EXTENSION.equals(matcher.group(2)) == false; - maxStateIdIsLegacy &= legacy; // on purpose, see NOTE below - PathAndStateId pav = new PathAndStateId(stateFile, stateId, legacy); + PathAndStateId pav = new PathAndStateId(stateFile, stateId); logger.trace("found state file: {}", pav); files.add(pav); } @@ -292,39 +280,19 @@ public abstract class MetaDataStateFormat { } } } - final List exceptions = new ArrayList<>(); - T state = null; // NOTE: we might have multiple version of the latest state if there are multiple data dirs.. for this case - // we iterate only over the ones with the max version. If we have at least one state file that uses the - // new format (ie. legacy == false) then we know that the latest version state ought to use this new format. - // In case the state file with the latest version does not use the new format while older state files do, - // the list below will be empty and loading the state will fail + // we iterate only over the ones with the max version. + long finalMaxStateId = maxStateId; Collection pathAndStateIds = files .stream() - .filter(new StateIdAndLegacyPredicate(maxStateId, maxStateIdIsLegacy)) + .filter(pathAndStateId -> pathAndStateId.id == finalMaxStateId) .collect(Collectors.toCollection(ArrayList::new)); + final List exceptions = new ArrayList<>(); for (PathAndStateId pathAndStateId : pathAndStateIds) { try { - final Path stateFile = pathAndStateId.file; - final long id = pathAndStateId.id; - if (pathAndStateId.legacy) { // read the legacy format -- plain XContent - final byte[] data = Files.readAllBytes(stateFile); - if (data.length == 0) { - logger.debug("{}: no data for [{}], ignoring...", prefix, stateFile.toAbsolutePath()); - continue; - } - try (XContentParser parser = XContentHelper - .createParser(namedXContentRegistry, LoggingDeprecationHandler.INSTANCE, new BytesArray(data))) { - state = fromXContent(parser); - } - if (state == null) { - logger.debug("{}: no data for [{}], ignoring...", prefix, stateFile.toAbsolutePath()); - } - } else { - state = read(namedXContentRegistry, stateFile); - logger.trace("state id [{}] read from [{}]", id, stateFile.getFileName()); - } + T state = read(namedXContentRegistry, pathAndStateId.file); + logger.trace("state id [{}] read from [{}]", pathAndStateId.id, pathAndStateId.file.getFileName()); return state; } catch (Exception e) { exceptions.add(new IOException("failed to read " + pathAndStateId.toString(), e)); @@ -338,46 +306,24 @@ public abstract class MetaDataStateFormat { // We have some state files but none of them gave us a usable state throw new IllegalStateException("Could not find a state file to recover from among " + files); } - return state; + return null; } /** - * Filters out all {@link org.elasticsearch.gateway.MetaDataStateFormat.PathAndStateId} instances with a different id than - * the given one. - */ - private static final class StateIdAndLegacyPredicate implements Predicate { - private final long id; - private final boolean legacy; - - StateIdAndLegacyPredicate(long id, boolean legacy) { - this.id = id; - this.legacy = legacy; - } - - @Override - public boolean test(PathAndStateId input) { - return input.id == id && input.legacy == legacy; - } - } - - /** - * Internal struct-like class that holds the parsed state id, the file - * and a flag if the file is a legacy state ie. pre 1.5 + * Internal struct-like class that holds the parsed state id and the file */ private static class PathAndStateId { final Path file; final long id; - final boolean legacy; - private PathAndStateId(Path file, long id, boolean legacy) { + private PathAndStateId(Path file, long id) { this.file = file; this.id = id; - this.legacy = legacy; } @Override public String toString() { - return "[id:" + id + ", legacy:" + legacy + ", file:" + file.toAbsolutePath() + "]"; + return "[id:" + id + ", file:" + file.toAbsolutePath() + "]"; } } diff --git a/server/src/test/java/org/elasticsearch/bwcompat/RecoveryWithUnsupportedIndicesIT.java b/server/src/test/java/org/elasticsearch/bwcompat/RecoveryWithUnsupportedIndicesIT.java index 5247a224423..53efeb393e4 100644 --- a/server/src/test/java/org/elasticsearch/bwcompat/RecoveryWithUnsupportedIndicesIT.java +++ b/server/src/test/java/org/elasticsearch/bwcompat/RecoveryWithUnsupportedIndicesIT.java @@ -81,16 +81,12 @@ public class RecoveryWithUnsupportedIndicesIT extends ESIntegTestCase { return builder.build(); } - public void testUpgradeStartClusterOn_0_20_6() throws Exception { - String indexName = "unsupported-0.20.6"; + public void testUpgradeStartClusterOn_2_4_5() throws Exception { + String indexName = "unsupported-2.4.5"; logger.info("Checking static index {}", indexName); Settings nodeSettings = prepareBackwardsDataDir(getBwcIndicesPath().resolve(indexName + ".zip")); - try { - internalCluster().startNode(nodeSettings); - fail(); - } catch (Exception ex) { - assertThat(ex.getCause().getCause().getMessage(), containsString(" was created before v2.0.0.beta1 and wasn't upgraded")); - } + assertThat(expectThrows(Exception.class, () -> internalCluster().startNode(nodeSettings)) + .getCause().getCause().getMessage(), containsString("Format version is not supported")); } } diff --git a/server/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java b/server/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java index 6a8cf5bf6ab..d236d01f049 100644 --- a/server/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java +++ b/server/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java @@ -39,7 +39,6 @@ import org.elasticsearch.common.xcontent.NamedXContentRegistry; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.ToXContentFragment; import org.elasticsearch.common.xcontent.XContentBuilder; -import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.index.Index; import org.elasticsearch.test.ESTestCase; @@ -92,7 +91,7 @@ public class MetaDataStateFormatTests extends ESTestCase { Files.copy(resource, dst); MetaData read = format.read(xContentRegistry(), dst); assertThat(read, notNullValue()); - assertThat(read.clusterUUID(), equalTo("3O1tDF1IRB6fSJ-GrTMUtg")); + assertThat(read.clusterUUID(), equalTo("y9XcwLJGTROoOEfixlRwfQ")); // indices are empty since they are serialized separately } @@ -237,7 +236,6 @@ public class MetaDataStateFormatTests extends ESTestCase { public void testLoadState() throws IOException { final Path[] dirs = new Path[randomIntBetween(1, 5)]; int numStates = randomIntBetween(1, 5); - int numLegacy = randomIntBetween(0, numStates); List meta = new ArrayList<>(); for (int i = 0; i < numStates; i++) { meta.add(randomMeta()); @@ -247,20 +245,7 @@ public class MetaDataStateFormatTests extends ESTestCase { for (int i = 0; i < dirs.length; i++) { dirs[i] = createTempDir(); Files.createDirectories(dirs[i].resolve(MetaDataStateFormat.STATE_DIR_NAME)); - for (int j = 0; j < numLegacy; j++) { - if (randomBoolean() && (j < numStates - 1 || dirs.length > 0 && i != 0)) { - Path file = dirs[i].resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve("global-"+j); - Files.createFile(file); // randomly create 0-byte files -- there is extra logic to skip them - } else { - try (XContentBuilder xcontentBuilder = XContentFactory.contentBuilder(MetaDataStateFormat.FORMAT, - Files.newOutputStream(dirs[i].resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve("global-" + j)))) { - xcontentBuilder.startObject(); - MetaData.Builder.toXContent(meta.get(j), xcontentBuilder, ToXContent.EMPTY_PARAMS); - xcontentBuilder.endObject(); - } - } - } - for (int j = numLegacy; j < numStates; j++) { + for (int j = 0; j < numStates; j++) { format.write(meta.get(j), dirs[i]); if (randomBoolean() && (j < numStates - 1 || dirs.length > 0 && i != 0)) { // corrupt a file that we do not necessarily need here.... Path file = dirs[i].resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve("global-" + j + ".st"); @@ -290,20 +275,18 @@ public class MetaDataStateFormatTests extends ESTestCase { assertThat(loadedMetaData.indexGraveyard(), equalTo(latestMetaData.indexGraveyard())); // now corrupt all the latest ones and make sure we fail to load the state - if (numStates > numLegacy) { - for (int i = 0; i < dirs.length; i++) { - Path file = dirs[i].resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve("global-" + (numStates-1) + ".st"); - if (corruptedFiles.contains(file)) { - continue; - } - MetaDataStateFormatTests.corruptFile(file, logger); - } - try { - format.loadLatestState(logger, xContentRegistry(), dirList.toArray(new Path[0])); - fail("latest version can not be read"); - } catch (ElasticsearchException ex) { - assertThat(ExceptionsHelper.unwrap(ex, CorruptStateException.class), notNullValue()); + for (int i = 0; i < dirs.length; i++) { + Path file = dirs[i].resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve("global-" + (numStates-1) + ".st"); + if (corruptedFiles.contains(file)) { + continue; } + MetaDataStateFormatTests.corruptFile(file, logger); + } + try { + format.loadLatestState(logger, xContentRegistry(), dirList.toArray(new Path[0])); + fail("latest version can not be read"); + } catch (ElasticsearchException ex) { + assertThat(ExceptionsHelper.unwrap(ex, CorruptStateException.class), notNullValue()); } } diff --git a/server/src/test/resources/indices/bwc/compressed-repo-1.7.4.zip b/server/src/test/resources/indices/bwc/compressed-repo-1.7.4.zip deleted file mode 100644 index 9edf7d57527..00000000000 Binary files a/server/src/test/resources/indices/bwc/compressed-repo-1.7.4.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.20.6.zip b/server/src/test/resources/indices/bwc/unsupported-0.20.6.zip deleted file mode 100644 index 753b577d3ad..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.20.6.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.0.Beta1.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.0.Beta1.zip deleted file mode 100644 index 5bbdea4a963..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.0.Beta1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.0.RC1.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.0.RC1.zip deleted file mode 100644 index d9072ce465c..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.0.RC1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.0.RC2.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.0.RC2.zip deleted file mode 100644 index dce299b7d60..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.0.RC2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.0.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.0.zip deleted file mode 100644 index 3ec908ddc27..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.1.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.1.zip deleted file mode 100644 index 67db98fc3ce..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.10.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.10.zip deleted file mode 100644 index 6bdb9f27c8d..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.10.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.11.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.11.zip deleted file mode 100644 index b5253f9a673..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.11.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.12.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.12.zip deleted file mode 100644 index 0392049bb9d..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.12.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.13.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.13.zip deleted file mode 100644 index 025b4c38b13..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.13.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.2.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.2.zip deleted file mode 100644 index 413e08e6581..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.3.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.3.zip deleted file mode 100644 index c31d4de7c5b..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.3.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.4.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.4.zip deleted file mode 100644 index 8b07a924935..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.4.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.5.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.5.zip deleted file mode 100644 index dfd0fd09e7b..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.5.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.6.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.6.zip deleted file mode 100644 index 1f3cff28e7a..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.6.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.7.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.7.zip deleted file mode 100644 index 6d0e65c28c4..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.7.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.8.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.8.zip deleted file mode 100644 index 8ff8ac3ddf2..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.8.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-0.90.9.zip b/server/src/test/resources/indices/bwc/unsupported-0.90.9.zip deleted file mode 100644 index 4445b3905ac..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-0.90.9.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.0.Beta1.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.0.Beta1.zip deleted file mode 100644 index 167dde888df..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.0.Beta1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.0.Beta2.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.0.Beta2.zip deleted file mode 100644 index 95fbfefb870..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.0.Beta2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.0.RC1.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.0.RC1.zip deleted file mode 100644 index 3ced97aa2a9..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.0.RC1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.0.RC2.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.0.RC2.zip deleted file mode 100644 index 1298cfbfd1d..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.0.RC2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.0.zip deleted file mode 100644 index 2cb9abc43dc..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.1.zip deleted file mode 100644 index 844271b58c4..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.2.zip deleted file mode 100644 index dd8e39388df..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.0.3.zip b/server/src/test/resources/indices/bwc/unsupported-1.0.3.zip deleted file mode 100644 index e4437effa24..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.0.3.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.1.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.1.0.zip deleted file mode 100644 index 4f05370b129..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.1.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.1.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.1.1.zip deleted file mode 100644 index effeb94287b..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.1.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.1.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.1.2.zip deleted file mode 100644 index bedffa44f19..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.1.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.2.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.2.0.zip deleted file mode 100644 index 4644a389333..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.2.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.2.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.2.1.zip deleted file mode 100644 index 553b46b06ad..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.2.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.2.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.2.2.zip deleted file mode 100644 index 3f51a47534e..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.2.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.2.3.zip b/server/src/test/resources/indices/bwc/unsupported-1.2.3.zip deleted file mode 100644 index 8c8bfbd908b..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.2.3.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.2.4.zip b/server/src/test/resources/indices/bwc/unsupported-1.2.4.zip deleted file mode 100644 index e3a151930e7..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.2.4.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.0.zip deleted file mode 100644 index d98958dea33..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.1.zip deleted file mode 100644 index 167d0f4c946..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.2.zip deleted file mode 100644 index 756eaf68ac2..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.3.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.3.zip deleted file mode 100644 index 8470deefd8f..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.3.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.4.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.4.zip deleted file mode 100644 index 2175012fc6d..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.4.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.5.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.5.zip deleted file mode 100644 index 19d1e568d84..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.5.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.6.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.6.zip deleted file mode 100644 index ad8e8bd003c..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.6.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.7.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.7.zip deleted file mode 100644 index 3a645a9dd55..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.7.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.8.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.8.zip deleted file mode 100644 index f8ab0a26dc6..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.8.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.3.9.zip b/server/src/test/resources/indices/bwc/unsupported-1.3.9.zip deleted file mode 100644 index 5ef35b21ced..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.3.9.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.4.0.Beta1.zip b/server/src/test/resources/indices/bwc/unsupported-1.4.0.Beta1.zip deleted file mode 100644 index 4546f5d4aa3..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.4.0.Beta1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.4.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.4.0.zip deleted file mode 100644 index 467d19aa5ed..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.4.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.4.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.4.1.zip deleted file mode 100644 index 2adbb28caed..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.4.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.4.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.4.2.zip deleted file mode 100644 index 4fac2086e5d..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.4.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.4.3.zip b/server/src/test/resources/indices/bwc/unsupported-1.4.3.zip deleted file mode 100644 index 1a0d66745a9..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.4.3.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.4.4.zip b/server/src/test/resources/indices/bwc/unsupported-1.4.4.zip deleted file mode 100644 index 0328a9e2d57..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.4.4.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.4.5.zip b/server/src/test/resources/indices/bwc/unsupported-1.4.5.zip deleted file mode 100644 index eeb25ab6ed9..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.4.5.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.5.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.5.0.zip deleted file mode 100644 index f1dab088314..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.5.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.5.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.5.1.zip deleted file mode 100644 index 342e311e56d..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.5.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.5.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.5.2.zip deleted file mode 100644 index fb36b197c4a..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.5.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.6.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.6.0.zip deleted file mode 100644 index 02a5806638b..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.6.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.6.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.6.1.zip deleted file mode 100644 index 04820f92b07..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.6.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.6.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.6.2.zip deleted file mode 100644 index af6ce561fa6..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.6.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.7.0.zip b/server/src/test/resources/indices/bwc/unsupported-1.7.0.zip deleted file mode 100644 index 941be645c65..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.7.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.7.1.zip b/server/src/test/resources/indices/bwc/unsupported-1.7.1.zip deleted file mode 100644 index debd797162b..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.7.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.7.2.zip b/server/src/test/resources/indices/bwc/unsupported-1.7.2.zip deleted file mode 100644 index 18bb6c7dfc9..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.7.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.7.3.zip b/server/src/test/resources/indices/bwc/unsupported-1.7.3.zip deleted file mode 100644 index 9fcc1788ea9..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.7.3.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.7.4.zip b/server/src/test/resources/indices/bwc/unsupported-1.7.4.zip deleted file mode 100644 index a47ff4faffc..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.7.4.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-1.7.5.zip b/server/src/test/resources/indices/bwc/unsupported-1.7.5.zip deleted file mode 100644 index 22625293a1c..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-1.7.5.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.0.0-beta1.zip b/server/src/test/resources/indices/bwc/unsupported-2.0.0-beta1.zip deleted file mode 100644 index 6d609479552..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.0.0-beta1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.0.0-beta2.zip b/server/src/test/resources/indices/bwc/unsupported-2.0.0-beta2.zip deleted file mode 100644 index 6732f715cfe..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.0.0-beta2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.0.0-rc1.zip b/server/src/test/resources/indices/bwc/unsupported-2.0.0-rc1.zip deleted file mode 100644 index 8c440725e9c..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.0.0-rc1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.0.0.zip b/server/src/test/resources/indices/bwc/unsupported-2.0.0.zip deleted file mode 100644 index cc0a0ae5320..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.0.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.0.1.zip b/server/src/test/resources/indices/bwc/unsupported-2.0.1.zip deleted file mode 100644 index 81a31d18f81..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.0.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.0.2.zip b/server/src/test/resources/indices/bwc/unsupported-2.0.2.zip deleted file mode 100644 index 63be140108c..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.0.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.1.0.zip b/server/src/test/resources/indices/bwc/unsupported-2.1.0.zip deleted file mode 100644 index dff157c2ab2..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.1.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.1.1.zip b/server/src/test/resources/indices/bwc/unsupported-2.1.1.zip deleted file mode 100644 index b7c408e5597..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.1.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.1.2.zip b/server/src/test/resources/indices/bwc/unsupported-2.1.2.zip deleted file mode 100644 index d6a4f9fddfa..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.1.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.2.0.zip b/server/src/test/resources/indices/bwc/unsupported-2.2.0.zip deleted file mode 100644 index 5c9eba5c616..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.2.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.2.1.zip b/server/src/test/resources/indices/bwc/unsupported-2.2.1.zip deleted file mode 100644 index 3596820a44a..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.2.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.2.2.zip b/server/src/test/resources/indices/bwc/unsupported-2.2.2.zip deleted file mode 100644 index 788ba0712b5..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.2.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.3.0.zip b/server/src/test/resources/indices/bwc/unsupported-2.3.0.zip deleted file mode 100644 index 212d3f8c7cf..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.3.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.3.1.zip b/server/src/test/resources/indices/bwc/unsupported-2.3.1.zip deleted file mode 100644 index b825872bb55..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.3.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.3.2.zip b/server/src/test/resources/indices/bwc/unsupported-2.3.2.zip deleted file mode 100644 index f6b8ec502d9..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.3.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.3.3.zip b/server/src/test/resources/indices/bwc/unsupported-2.3.3.zip deleted file mode 100644 index e349aac5376..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.3.3.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.3.4.zip b/server/src/test/resources/indices/bwc/unsupported-2.3.4.zip deleted file mode 100644 index bc75ad093cf..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.3.4.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.3.5.zip b/server/src/test/resources/indices/bwc/unsupported-2.3.5.zip deleted file mode 100644 index c01af7a2062..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.3.5.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.4.0.zip b/server/src/test/resources/indices/bwc/unsupported-2.4.0.zip deleted file mode 100644 index 5055ded5f87..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.4.0.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.4.1.zip b/server/src/test/resources/indices/bwc/unsupported-2.4.1.zip deleted file mode 100644 index 6dc29439a0f..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.4.1.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.4.2.zip b/server/src/test/resources/indices/bwc/unsupported-2.4.2.zip deleted file mode 100644 index f8f31d00dcc..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.4.2.zip and /dev/null differ diff --git a/server/src/test/resources/indices/bwc/unsupported-2.4.3.zip b/server/src/test/resources/indices/bwc/unsupported-2.4.3.zip deleted file mode 100644 index 9b4ad26db1e..00000000000 Binary files a/server/src/test/resources/indices/bwc/unsupported-2.4.3.zip and /dev/null differ diff --git a/server/src/test/resources/org/elasticsearch/gateway/global-3.st b/server/src/test/resources/org/elasticsearch/gateway/global-3.st index b6b4e8d762e..ea8cb5bf257 100644 Binary files a/server/src/test/resources/org/elasticsearch/gateway/global-3.st and b/server/src/test/resources/org/elasticsearch/gateway/global-3.st differ