From 67e6d623e12ad473532a3408accc374666bd5c6d Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 7 Nov 2014 12:43:15 +0100 Subject: [PATCH] [STORE] Drop pre 0.90 compression BWC Pre 0.90 indices need to be upgraded to run with 2.0 we can drop the stored field compression BWC. --- .../org/elasticsearch/index/store/Store.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/store/Store.java b/src/main/java/org/elasticsearch/index/store/Store.java index 683a0ba28b8..75e8c95edf5 100644 --- a/src/main/java/org/elasticsearch/index/store/Store.java +++ b/src/main/java/org/elasticsearch/index/store/Store.java @@ -500,27 +500,6 @@ public class Store extends AbstractIndexShardComponent implements CloseableIndex return Store.this.codecService; } - @Override - public IndexInput openInput(String name, IOContext context) throws IOException { - IndexInput in = super.openInput(name, context); - boolean success = false; - try { - // Only for backward comp. since we now use Lucene codec compression - if (name.endsWith(".fdt") || name.endsWith(".tvf")) { - Compressor compressor = CompressorFactory.compressor(in); - if (compressor != null) { - in = compressor.indexInput(in); - } - } - success = true; - } finally { - if (!success) { - IOUtils.closeWhileHandlingException(in); - } - } - return in; - } - @Override public void close() throws IOException { assert false : "Nobody should close this directory except of the Store itself";