Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-8971: Preserve root cause when wrapping exceptions

Chris Hostetter16f905ff13c4
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 14617ebe50c..89eb91f7c95 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -139,6 +139,8 @@ Bug Fixes
* SOLR-8990: Fix top term links from schema browser page to use {!term} parser (hossman)
+* SOLR-8971: Preserve root cause when wrapping exceptions (hossman)
+
Optimizations
----------------------
* SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation.
diff --git a/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java b/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java
index 937c20a0e43..49b76794a7f 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java
@@ -50,7 +50,7 @@ public abstract class ShardHandlerFactory {
catch (Exception e) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
String.format(Locale.ROOT, "Error instantiating shardHandlerFactory class [%s]: %s",
- info.className, e.getMessage()));
+ info.className, e.getMessage()), e);
}
}