ignore closed exception when async loading bloom filters

This commit is contained in:
kimchy 2011-02-15 23:23:49 +02:00
parent f14305e95c
commit 442ce9daaa
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermDocs;
import org.apache.lucene.index.TermEnum;
import org.apache.lucene.store.AlreadyClosedException;
import org.apache.lucene.util.StringHelper;
import org.apache.lucene.util.UnicodeUtil;
import org.elasticsearch.ElasticSearchException;
@ -202,6 +203,8 @@ public class SimpleBloomCache extends AbstractIndexComponent implements BloomCac
fieldCache.put(field, filterEntry);
}
}
} catch (AlreadyClosedException e) {
// ignore, we are getting closed
} catch (Exception e) {
logger.warn("failed to load bloom filter for [{}]", e, field);
} finally {