Skip to content

Apache Lucene open-source search software

SOLR-7305: BlendedInfixLookupFactory swallows root IOException when it occurs. This closes #137

Shalin Shekhar Mangar29c1de0fa895
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 1ad2b74132e..f2fa0ee9be5 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -294,7 +294,9 @@ Bug Fixes
* SOLR-7254: Make an invalid negative start/rows throw a HTTP 400 error (Bad Request) instead
of causing a 500 error. (Ramkumar Aiyengar, Hrishikesh Gadre, yonik)
-
+
+* SOLR-7305: BlendedInfixLookupFactory swallows root IOException when it occurs.
+ (Stephan Lagraulet via shalin)
Optimizations
----------------------
diff --git a/solr/core/src/java/org/apache/solr/spelling/suggest/fst/BlendedInfixLookupFactory.java b/solr/core/src/java/org/apache/solr/spelling/suggest/fst/BlendedInfixLookupFactory.java
index b7c6bf42850..1b92d1828c9 100644
--- a/solr/core/src/java/org/apache/solr/spelling/suggest/fst/BlendedInfixLookupFactory.java
+++ b/solr/core/src/java/org/apache/solr/spelling/suggest/fst/BlendedInfixLookupFactory.java
@@ -132,7 +132,7 @@ public class BlendedInfixLookupFactory extends AnalyzingInfixLookupFactory {
}
};
} catch (IOException e) {
- throw new RuntimeException();
+ throw new RuntimeException(e);
}
}