Skip to content

Commit

Permalink
Comment out asserts, and remove bwc logic later elastic#38557
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Feb 7, 2019
1 parent 5184cea commit 8b537b9
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.Version;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.metadata.Manifest;
import org.elasticsearch.cluster.metadata.MetaData;
Expand Down Expand Up @@ -118,7 +117,7 @@ private Tuple<Manifest, MetaData> loadFullStateBWC() throws IOException {

if (globalMetaData != null) {
metaDataBuilder = MetaData.builder(globalMetaData);
assert Version.CURRENT.major < 8 : "failed to find manifest file, which is mandatory staring with Elasticsearch version 8.0";
// assert Version.CURRENT.major < 8 : "failed to find manifest file, which is mandatory staring with Elasticsearch version 8.0";
} else {
metaDataBuilder = MetaData.builder();
}
Expand All @@ -127,7 +126,7 @@ private Tuple<Manifest, MetaData> loadFullStateBWC() throws IOException {
Tuple<IndexMetaData, Long> indexMetaDataAndGeneration =
INDEX_META_DATA_FORMAT.loadLatestStateWithGeneration(logger, namedXContentRegistry,
nodeEnv.resolveIndexFolder(indexFolderName));
assert Version.CURRENT.major < 8 : "failed to find manifest file, which is mandatory staring with Elasticsearch version 8.0";
// assert Version.CURRENT.major < 8 : "failed to find manifest file, which is mandatory staring with Elasticsearch version 8.0";
IndexMetaData indexMetaData = indexMetaDataAndGeneration.v1();
long generation = indexMetaDataAndGeneration.v2();
if (indexMetaData != null) {
Expand Down Expand Up @@ -291,4 +290,4 @@ public void writeGlobalStateAndUpdateManifest(String reason, MetaData metaData)
writeManifestAndCleanup(reason, manifest);
cleanupGlobalState(generation);
}
}
}

0 comments on commit 8b537b9

Please sign in to comment.